1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-21 17:52:51 -04:00

Add WINDOW_TYPE_DESKTOP to ignore list.

Issue: #215
This commit is contained in:
Dave Davenport 2015-08-31 08:00:23 +02:00
parent 5c618681c4
commit 29d0c109cb
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ int window_get_cardinal_prop ( Display *display, Window w, Atom atom, unsigned l
X ( _NET_WM_STATE_WITHDRAWN ), \
X ( _NET_WM_WINDOW_TYPE ), \
X ( _NET_WM_WINDOW_TYPE_DOCK ), \
X ( _NET_WM_WINDOW_TYPE_DESKTOP ), \
X ( _NET_WM_DESKTOP ), \
X ( CLIPBOARD ), \
X ( UTF8_STRING ), \

View file

@ -409,6 +409,7 @@ static char ** window_mode_get_data ( unsigned int *length, Switcher *sw )
if ( ( c = window_client ( display, wins[i] ) )
&& !c->xattr.override_redirect
&& !client_has_window_type ( c, netatoms[_NET_WM_WINDOW_TYPE_DOCK] )
&& !client_has_window_type ( c, netatoms[_NET_WM_WINDOW_TYPE_DESKTOP] )
&& !client_has_state ( c, netatoms[_NET_WM_STATE_SKIP_PAGER] )
&& !client_has_state ( c, netatoms[_NET_WM_STATE_SKIP_TASKBAR] ) ) {
classfield = MAX ( classfield, strlen ( c->class ) );