diff options
author | okan <okan> | 2013-12-12 20:15:07 +0000 |
---|---|---|
committer | okan <okan> | 2013-12-12 20:15:07 +0000 |
commit | b276a2ef00a3333e0d474ad960c0e2b16880904d (patch) | |
tree | b3e1b5f66735ecf4b7d6e70981064d59210f3f41 /calmwm.c | |
parent | e767ac9c6556d04c346b89e8d47d721c38cc366e (diff) | |
download | cwm-b276a2ef00a3333e0d474ad960c0e2b16880904d.tar.gz cwm-b276a2ef00a3333e0d474ad960c0e2b16880904d.tar.xz cwm-b276a2ef00a3333e0d474ad960c0e2b16880904d.zip |
ICCCM explicitly states that server time (CurrentTime) should *not* be
used for focus events, but rather the timestamp of the generated event. Track the last event timestamp and send it down for a WM_TAKE_FOCUS ClientMessage. I suspect we should do this for clients that don't announce this Atom as well, though the raciness gets us into a bind. Solves focus order issue since WM_TAKE_FOCUS; fix verified by sthen@ ok sthen@
Diffstat (limited to 'calmwm.c')
-rw-r--r-- | calmwm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/calmwm.c b/calmwm.c index f2a8a3d..940db44 100644 --- a/calmwm.c +++ b/calmwm.c @@ -37,6 +37,7 @@ char **cwm_argv; Display *X_Dpy; +Time Last_Event_Time = CurrentTime; Atom cwmh[CWMH_NITEMS]; Atom ewmh[EWMH_NITEMS]; |