check WM_CLIENT_LEADER for dialogs, if WM_TRANSIENT_FOR is not set

This commit is contained in:
seanpringle
2012-09-11 14:01:15 +10:00
parent 1d93b2edb2
commit 91cac07077
3 changed files with 46 additions and 19 deletions

3
xoat.h
View File

@@ -94,7 +94,7 @@ int nmonitors = 1;
typedef struct {
Window window;
XWindowAttributes attr;
Window transient_for;
Window transient, leader;
Atom type, states[MAX_NET_WM_STATES+1];
short monitor, spot, visible, manage, input, urgent;
char *class;
@@ -151,6 +151,7 @@ wm_strut struts;
X(_NET_WM_STATE_ABOVE),\
X(_NET_WM_STATE_DEMANDS_ATTENTION),\
X(WM_DELETE_WINDOW),\
X(WM_CLIENT_LEADER),\
X(WM_TAKE_FOCUS),\
X(WM_PROTOCOLS)