From 97080ca2beb4a8b7dd131e3543f460189af7136a Mon Sep 17 00:00:00 2001 From: James Bunton Date: Thu, 22 Sep 2016 00:34:05 +1000 Subject: [PATCH] Allow apps to manually manage SKIP_TASKBAR and SKIP_PAGER --- spectrwm.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/spectrwm.c b/spectrwm.c index 285bac9..adc0f1b 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1542,6 +1542,25 @@ ewmh_autoquirk(struct ws_win *win) } } free(r); + + + c = xcb_get_property(conn, 0, win->id, + ewmh[_NET_WM_STATE].atom, XCB_ATOM_ATOM, 0, UINT32_MAX); + r = xcb_get_property_reply(conn, c, NULL); + if (r == NULL) + return; + + type = xcb_get_property_value(r); + n = xcb_get_property_value_length(r) / sizeof(xcb_atom_t); + + for (i = 0; i < n; i++) { + if (type[i] == ewmh[_NET_WM_STATE_SKIP_PAGER].atom || + type[i] == ewmh[_NET_WM_STATE_SKIP_TASKBAR].atom) { + win->quirks = SWM_Q_FLOAT | SWM_Q_ANYWHERE; + break; + } + } + free(r); } void -- 2.39.2