diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-12-25 14:39:28 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-12-25 14:39:28 -0800 |
commit | badc3d6f1c469b40bda70d842154e45384b9371e (patch) | |
tree | 9bfc193c9af8c0d8cbaa888618b803e1c34cb6ad | |
parent | 96bca045f940d8a31bc38cabbf9646b93e9c7087 (diff) |
xwindow: include >= fullscreen in vwm_xwin_should_manage()
Just expanding the heuristic to everything >= fullscreen instead
of precisely fullscreen. The specific impetus for this was
fullscreen games, but from a security standpoint it makes sense
to manage everything larger as well.
-rw-r--r-- | src/xwindow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwindow.c b/src/xwindow.c index 813399b..0b0cfbe 100644 --- a/src/xwindow.c +++ b/src/xwindow.c @@ -129,11 +129,11 @@ int vwm_xwin_should_manage(vwm_t *vwm, vwm_xwindow_t *xwin) if (!scr) return 1; - /* TODO: for now just using an exact fullscreen heuristic, but should really + /* TODO: for now just using an >= fullscreen heuristic, but should really * trigger for > XX% coverage. This suffices for managing annoying * override_redirect fullscreen windows. */ - if (xwin->attrs.width == scr->width && xwin->attrs.height == scr->height) + if (xwin->attrs.width >= scr->width && xwin->attrs.height >= scr->height) return 1; return 0; |