tewmh: Treat non-EWMH compliant window as NORMAL - glazier - window management experiments
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7c536c33fc7e7f0e3a327e23d584171fe5138020
(DIR) parent 1c96eac44bf30d6f586aef012f0bf8f116c5d8a2
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Tue, 9 Jun 2020 18:44:01 +0200
ewmh: Treat non-EWMH compliant window as NORMAL
Diffstat:
M ewmh.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/ewmh.c b/ewmh.c
t@@ -203,6 +203,9 @@ ewmh_type(xcb_window_t window)
atoms = wm_get_atom(window, ewmh[_NET_WM_WINDOW_TYPE].atom, XCB_ATOM_ATOM, &n);
+ if (!atoms)
+ return NORMAL;
+
/*
* as per the EWMH spec, when multiple types are
* applicable, they must be listed from the most to least