aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:36:02 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-15 11:36:02 (GMT)
commit4093d2641f371bb8e80616a4c51dea9af508dac2 (patch)
treeee55897193105bfe0dca0b9dd771af7f6cf06d19 /src/Window.cc
parentf32fdc29d28dce26f87e9f10f32e9399686766d8 (diff)
downloadfluxbox_pavel-4093d2641f371bb8e80616a4c51dea9af508dac2.zip
fluxbox_pavel-4093d2641f371bb8e80616a4c51dea9af508dac2.tar.bz2
group some window properties into a new class FbWinFrame::State
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index a5ec2dd..866e160 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1526,6 +1526,7 @@ void FluxboxWindow::setFullscreen(bool flag) {
1526 sendConfigureNotify(); 1526 sendConfigureNotify();
1527 1527
1528 fullscreen = true; 1528 fullscreen = true;
1529 frame().setFullscreen(true);
1529 1530
1530 setFullscreenLayer(); 1531 setFullscreenLayer();
1531 if (!isFocused()) 1532 if (!isFocused())
@@ -1534,6 +1535,7 @@ void FluxboxWindow::setFullscreen(bool flag) {
1534 } else if (!flag && isFullscreen()) { 1535 } else if (!flag && isFullscreen()) {
1535 1536
1536 fullscreen = false; 1537 fullscreen = false;
1538 frame().setFullscreen(false);
1537 1539
1538 frame().setUseShape(true); 1540 frame().setUseShape(true);
1539 if (m_toggled_decos) { 1541 if (m_toggled_decos) {
@@ -1668,6 +1670,7 @@ void FluxboxWindow::setMaximizedState(int type) {
1668 maximized ^= MAX_HORZ; 1670 maximized ^= MAX_HORZ;
1669 } 1671 }
1670 1672
1673 frame().setMaximized(maximized);
1671 // ensure we apply the sizehints here, otherwise some 1674 // ensure we apply the sizehints here, otherwise some
1672 // apps (eg xterm) end up a little bit .. crappy (visually) 1675 // apps (eg xterm) end up a little bit .. crappy (visually)
1673 1676
@@ -3379,6 +3382,7 @@ void FluxboxWindow::startResizing(int x, int y, ResizeDirection dir) {
3379 3382
3380 resizing = true; 3383 resizing = true;
3381 maximized = MAX_NONE; 3384 maximized = MAX_NONE;
3385 frame().setMaximized(maximized);
3382 3386
3383 const Cursor& cursor = (m_resize_corner == LEFTTOP) ? frame().theme()->upperLeftAngleCursor() : 3387 const Cursor& cursor = (m_resize_corner == LEFTTOP) ? frame().theme()->upperLeftAngleCursor() :
3384 (m_resize_corner == RIGHTTOP) ? frame().theme()->upperRightAngleCursor() : 3388 (m_resize_corner == RIGHTTOP) ? frame().theme()->upperRightAngleCursor() :