1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

respect ewmh skip taskbar/pager

This commit is contained in:
seanpringle 2012-08-25 00:09:43 +10:00
parent 7e975f1a29
commit ecc986d62d

View file

@ -476,7 +476,9 @@ void monitor_active(workarea *mon)
// _NET_WM_STATE_*
int client_has_state(client *c, Atom state)
{
int i; for (i = 0; i < c->states; i++) if (c->state[i] == state) return 1;
int i;
for (i = 0; i < c->states; i++)
if (c->state[i] == state) return 1;
return 0;
}
@ -713,7 +715,9 @@ void run_switcher(int mode, int fmode)
// calc widths of fields
for (i = nwins-1; i > -1; i--)
{
if ((c = window_client(wins[i])))
if ((c = window_client(wins[i]))
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_PAGER])
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_TASKBAR]))
{
if (mode == DESKTOPWINDOWS)
{