diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-22 23:29:09 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-22 23:29:09 (GMT) |
commit | e3fb16c993331de931042b3fbd4300124e2cc9eb (patch) | |
tree | baaceb1b040a71a1f8bcc8fdea42eb0a683e02ff /src/Window.cc | |
parent | c37a91e1504fa73da233cc59fe67ead56dbd3083 (diff) | |
download | fluxbox-e3fb16c993331de931042b3fbd4300124e2cc9eb.zip fluxbox-e3fb16c993331de931042b3fbd4300124e2cc9eb.tar.bz2 |
allow various combinations of shaded, maximized, and fullscreen states
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Window.cc b/src/Window.cc index 52672c0..b175314 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -1465,9 +1465,6 @@ void FluxboxWindow::setFullscreen(bool flag) { | |||
1465 | 1465 | ||
1466 | if (flag && !isFullscreen()) { | 1466 | if (flag && !isFullscreen()) { |
1467 | 1467 | ||
1468 | if (isShaded()) | ||
1469 | shade(); | ||
1470 | |||
1471 | m_old_layernum = layerNum(); | 1468 | m_old_layernum = layerNum(); |
1472 | fullscreen = true; | 1469 | fullscreen = true; |
1473 | frame().setFullscreen(true); | 1470 | frame().setFullscreen(true); |
@@ -1535,9 +1532,6 @@ void FluxboxWindow::setMaximizedState(int type) { | |||
1535 | return; | 1532 | return; |
1536 | } | 1533 | } |
1537 | 1534 | ||
1538 | if (isShaded()) | ||
1539 | shade(); | ||
1540 | |||
1541 | if (isResizing()) | 1535 | if (isResizing()) |
1542 | stopResizing(); | 1536 | stopResizing(); |
1543 | 1537 | ||
@@ -1605,7 +1599,7 @@ void FluxboxWindow::shade() { | |||
1605 | frame().shade(); | 1599 | frame().shade(); |
1606 | 1600 | ||
1607 | shaded = !shaded; | 1601 | shaded = !shaded; |
1608 | 1602 | stateSig().notify(); | |
1609 | // TODO: this should set IconicState, but then we can't focus the window | 1603 | // TODO: this should set IconicState, but then we can't focus the window |
1610 | } | 1604 | } |
1611 | 1605 | ||