aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-22 05:55:00 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-22 05:55:00 (GMT)
commit84e5586ca1f517c97731f6d7655d7f812ad64a65 (patch)
tree283344f29d0ffd009a29ec52416dc2986cbecdc3
parent0a67bdce416cb18a9c2f356262b62e1fad8dd52f (diff)
downloadfluxbox-84e5586ca1f517c97731f6d7655d7f812ad64a65.zip
fluxbox-84e5586ca1f517c97731f6d7655d7f812ad64a65.tar.bz2
don't allow clients to move or resize fullscreen/maximized windows
-rw-r--r--src/Window.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 8d2bcc4..a993076 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2447,6 +2447,12 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) {
2447 } 2447 }
2448 } 2448 }
2449 2449
2450 // don't allow moving/resizing fullscreen or maximized windows
2451 if (isFullscreen() || isMaximizedHorz() && screen().getMaxIgnoreIncrement())
2452 cr.value_mask = cr.value_mask & ~(CWWidth | CWX);
2453 if (isFullscreen() || isMaximizedVert() && screen().getMaxIgnoreIncrement())
2454 cr.value_mask = cr.value_mask & ~(CWHeight | CWY);
2455
2450#ifdef REMEMBER 2456#ifdef REMEMBER
2451 // don't let misbehaving clients (e.g. MPlayer) move/resize their windows 2457 // don't let misbehaving clients (e.g. MPlayer) move/resize their windows
2452 // just after creation if the user has a saved position/size 2458 // just after creation if the user has a saved position/size