mirror of https://github.com/davatorium/rofi.git
ignore unmapped and override_redirect windows.
This commit is contained in:
parent
7d4ae86418
commit
34a453e5a6
|
@ -719,6 +719,8 @@ void run_switcher(int mode, int fmode)
|
||||||
for (i = nwins-1; i > -1; i--)
|
for (i = nwins-1; i > -1; i--)
|
||||||
{
|
{
|
||||||
if ((c = window_client(wins[i]))
|
if ((c = window_client(wins[i]))
|
||||||
|
&& c->xattr.map_state == IsViewable
|
||||||
|
&& !c->xattr.override_redirect
|
||||||
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_PAGER])
|
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_PAGER])
|
||||||
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_TASKBAR]))
|
&& !client_has_state(c, netatoms[_NET_WM_STATE_SKIP_TASKBAR]))
|
||||||
{
|
{
|
||||||
|
@ -948,4 +950,4 @@ int main(int argc, char *argv[])
|
||||||
if (ev.type == KeyPress) handle_keypress(&ev);
|
if (ev.type == KeyPress) handle_keypress(&ev);
|
||||||
}
|
}
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue