diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-15 11:46:06 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-15 11:46:06 (GMT) |
commit | 215939d6edcbd88aeb00745ec14f526f037ddb20 (patch) | |
tree | c45771d10bcedca3882d354414fe631eb8b3c44c /src/Window.cc | |
parent | 0689a0a4a8252d46a72048269faf00dba52a73c3 (diff) | |
download | fluxbox-215939d6edcbd88aeb00745ec14f526f037ddb20.zip fluxbox-215939d6edcbd88aeb00745ec14f526f037ddb20.tar.bz2 |
let FbWinFrame handle decorations in fullscreen state
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/Window.cc b/src/Window.cc index 9628598..cf9fa81 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1494,9 +1494,6 @@ void FluxboxWindow::setFullscreen(bool flag) { | |||
1494 | 1494 | ||
1495 | frame().setUseShape(false); | 1495 | frame().setUseShape(false); |
1496 | 1496 | ||
1497 | if (!m_toggled_decos) | ||
1498 | m_old_decoration_mask = decorationMask(); | ||
1499 | |||
1500 | m_old_layernum = layerNum(); | 1497 | m_old_layernum = layerNum(); |
1501 | if (!maximized) { | 1498 | if (!maximized) { |
1502 | m_old_pos_x = frame().x(); | 1499 | m_old_pos_x = frame().x(); |
@@ -1505,8 +1502,8 @@ void FluxboxWindow::setFullscreen(bool flag) { | |||
1505 | m_old_height = frame().height(); | 1502 | m_old_height = frame().height(); |
1506 | } | 1503 | } |
1507 | 1504 | ||
1508 | // clear decorations | 1505 | fullscreen = true; |
1509 | setDecorationMask(0); | 1506 | frame().setFullscreen(true); |
1510 | 1507 | ||
1511 | // dont call Window::moveResize here, it might ignore the | 1508 | // dont call Window::moveResize here, it might ignore the |
1512 | // resize if win state is not resizable; | 1509 | // resize if win state is not resizable; |
@@ -1518,9 +1515,6 @@ void FluxboxWindow::setFullscreen(bool flag) { | |||
1518 | screen().getHeadWidth(head), screen().getHeadHeight(head)); | 1515 | screen().getHeadWidth(head), screen().getHeadHeight(head)); |
1519 | sendConfigureNotify(); | 1516 | sendConfigureNotify(); |
1520 | 1517 | ||
1521 | fullscreen = true; | ||
1522 | frame().setFullscreen(true); | ||
1523 | |||
1524 | setFullscreenLayer(); | 1518 | setFullscreenLayer(); |
1525 | if (!isFocused()) | 1519 | if (!isFocused()) |
1526 | screen().focusedWindowSig().attach(this); | 1520 | screen().focusedWindowSig().attach(this); |
@@ -1531,13 +1525,6 @@ void FluxboxWindow::setFullscreen(bool flag) { | |||
1531 | frame().setFullscreen(false); | 1525 | frame().setFullscreen(false); |
1532 | 1526 | ||
1533 | frame().setUseShape(true); | 1527 | frame().setUseShape(true); |
1534 | if (m_toggled_decos) { | ||
1535 | if (m_old_decoration_mask & (FbWinFrame::DECORM_TITLEBAR | FbWinFrame::DECORM_TAB)) | ||
1536 | setDecorationMask(FbWinFrame::DECOR_NONE); | ||
1537 | else | ||
1538 | setDecorationMask(FbWinFrame::DECOR_NORMAL); | ||
1539 | } else | ||
1540 | setDecorationMask(m_old_decoration_mask); | ||
1541 | 1528 | ||
1542 | // ensure we apply the sizehints here, otherwise some | 1529 | // ensure we apply the sizehints here, otherwise some |
1543 | // apps (eg xterm) end up a little bit .. crappy (visually) | 1530 | // apps (eg xterm) end up a little bit .. crappy (visually) |