Dont include dock clients in ewmh lists
http://standards.freedesktop.org/wm-spec/latest/ar01s03.html#idm140251368149456 The _NET_CLIENT_LIST property of the root window: > These arrays contain all X Windows managed by the Window Manager. Dock clients are not managed windows, so they should not be included in _NET_CLIENT_LIST or _NET_CLIENT_LIST_STACKING.
This commit is contained in:
committed by
Michael Stapelberg
parent
ff94d28b85
commit
4126c87daf
11
src/con.c
11
src/con.c
@ -241,6 +241,17 @@ bool con_is_leaf(Con *con) {
|
||||
return TAILQ_EMPTY(&(con->nodes_head));
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true when this con is a leaf node with a managed X11 window (e.g.,
|
||||
* excluding dock containers)
|
||||
*/
|
||||
bool con_has_managed_window(Con *con) {
|
||||
return (con != NULL
|
||||
&& con->window != NULL
|
||||
&& con->window->id != XCB_WINDOW_NONE
|
||||
&& con_get_workspace(con) != NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this node has regular or floating children.
|
||||
*
|
||||
|
Reference in New Issue
Block a user