aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2013-12-12 20:15:07 +0000
committerokan2013-12-12 20:15:07 +0000
commit5a0e425ef7a6420297d12dfe69f6a99d307f5984 (patch)
treec2d94c79363ad9384bf6aa057313be4ccc49040f /calmwm.c
parent6c88180fdca79679ce61523647585749c0e7476d (diff)
downloadcwm-5a0e425ef7a6420297d12dfe69f6a99d307f5984.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calmwm.c b/calmwm.c
index b44196c..d6bc6a1 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.80 2013/07/15 14:50:44 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.81 2013/12/12 20:15:07 okan Exp $
*/
#include <sys/param.h>
@@ -37,6 +37,7 @@
char **cwm_argv;
Display *X_Dpy;
+Time Last_Event_Time = CurrentTime;
Atom cwmh[CWMH_NITEMS];
Atom ewmh[EWMH_NITEMS];