don't allow clients to move or resize fullscreen/maximized windows
This commit is contained in:
parent
0a67bdce41
commit
84e5586ca1
1 changed files with 6 additions and 0 deletions
|
@ -2447,6 +2447,12 @@ void FluxboxWindow::configureRequestEvent(XConfigureRequestEvent &cr) {
|
|||
}
|
||||
}
|
||||
|
||||
// don't allow moving/resizing fullscreen or maximized windows
|
||||
if (isFullscreen() || isMaximizedHorz() && screen().getMaxIgnoreIncrement())
|
||||
cr.value_mask = cr.value_mask & ~(CWWidth | CWX);
|
||||
if (isFullscreen() || isMaximizedVert() && screen().getMaxIgnoreIncrement())
|
||||
cr.value_mask = cr.value_mask & ~(CWHeight | CWY);
|
||||
|
||||
#ifdef REMEMBER
|
||||
// don't let misbehaving clients (e.g. MPlayer) move/resize their windows
|
||||
// just after creation if the user has a saved position/size
|
||||
|
|
Loading…
Reference in a new issue