diff options
-rw-r--r-- | src/Window.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index 2fcc31b..d774eed 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.49 2002/05/07 13:31:11 fluxgen Exp $ | 25 | // $Id: Window.cc,v 1.50 2002/05/07 13:50:34 fluxgen Exp $ |
26 | 26 | ||
27 | #include "Window.hh" | 27 | #include "Window.hh" |
28 | 28 | ||
@@ -3510,6 +3510,10 @@ void FluxboxWindow::setDecoration(Decoration decoration) { | |||
3510 | 3510 | ||
3511 | void FluxboxWindow::toggleDecoration() { | 3511 | void FluxboxWindow::toggleDecoration() { |
3512 | static bool decor = false; | 3512 | static bool decor = false; |
3513 | //don't toggle decor if the window is shaded | ||
3514 | if (isShaded()) | ||
3515 | return; | ||
3516 | |||
3513 | if (!decor) { | 3517 | if (!decor) { |
3514 | setDecoration(DECOR_NONE); | 3518 | setDecoration(DECOR_NONE); |
3515 | decor = true; | 3519 | decor = true; |