aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-05-07 13:50:34 (GMT)
committerfluxgen <fluxgen>2002-05-07 13:50:34 (GMT)
commitc8eeaea88ff11a30110de18a1ec32a31942bbd38 (patch)
treea1cffab963926b1d78e272bbf06a3089102bac92 /src/Window.cc
parenta10c34918c4b439b803f67304215b22d7ca649dd (diff)
downloadfluxbox-c8eeaea88ff11a30110de18a1ec32a31942bbd38.zip
fluxbox-c8eeaea88ff11a30110de18a1ec32a31942bbd38.tar.bz2
fixed bug [ 552723 ] removing decorations while shaded in toggleDecor
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc6
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
3511void FluxboxWindow::toggleDecoration() { 3511void 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;