diff options
author | fluxgen <fluxgen> | 2002-06-04 09:50:58 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-06-04 09:50:58 (GMT) |
commit | c98ab8e5b56e2fdb1b02bc6635833ae06363232a (patch) | |
tree | 8ca9e5c08fa1f3b98ea79f6bcd95ee6a5a1e014c /src | |
parent | 1d7b7e18766b5dbe3ae70216099aeb3232542c08 (diff) | |
download | fluxbox_paul-c98ab8e5b56e2fdb1b02bc6635833ae06363232a.zip fluxbox_paul-c98ab8e5b56e2fdb1b02bc6635833ae06363232a.tar.bz2 |
resize/move window even without decor
Diffstat (limited to 'src')
-rw-r--r-- | src/Window.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Window.cc b/src/Window.cc index 831443a..b7ecd9b 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Window.cc,v 1.58 2002/06/02 23:42:10 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.59 2002/06/04 09:50:58 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -3387,8 +3387,9 @@ void FluxboxWindow::setDecoration(Decoration decoration) { | |||
3387 | decorations.titlebar = decorations.border = decorations.handle = | 3387 | decorations.titlebar = decorations.border = decorations.handle = |
3388 | decorations.iconify = decorations.maximize = | 3388 | decorations.iconify = decorations.maximize = |
3389 | decorations.menu = decorations.tab = false; //tab is also a decor | 3389 | decorations.menu = decorations.tab = false; //tab is also a decor |
3390 | functions.resize = functions.move = functions.iconify = | 3390 | functions.iconify = functions.maximize = false; |
3391 | functions.maximize = false; | 3391 | functions.move = true; // We need to move even without decor |
3392 | functions.resize = true; // We need to resize even without decor | ||
3392 | break; | 3393 | break; |
3393 | 3394 | ||
3394 | default: | 3395 | default: |
@@ -3431,10 +3432,10 @@ void FluxboxWindow::toggleDecoration() { | |||
3431 | if (isShaded()) | 3432 | if (isShaded()) |
3432 | return; | 3433 | return; |
3433 | 3434 | ||
3434 | if (!decor) { | 3435 | if (!decor) { //remove decorations |
3435 | setDecoration(DECOR_NONE); | 3436 | setDecoration(DECOR_NONE); |
3436 | decor = true; | 3437 | decor = true; |
3437 | } else { | 3438 | } else { //revert back to old decoration |
3438 | setDecoration(old_decoration); | 3439 | setDecoration(old_decoration); |
3439 | decor = false; | 3440 | decor = false; |
3440 | } | 3441 | } |