]> git.sur5r.net Git - i3/i3/commit
Send last event timestamp with WM_TAKE_FOCUS msg
authorTony Crisci <tony@dubstepdish.com>
Sat, 29 Mar 2014 04:25:52 +0000 (00:25 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 31 Mar 2014 21:28:33 +0000 (23:28 +0200)
commit4ded44d18a4dfe1f2bcad6ee0da121ab570d5152
tree70dff860f36e7c66ae4c1487ba3b363ba98d52ef
parent2ba0d1ea49886db949c95e84cc8bfdea319b4c9a
Send last event timestamp with WM_TAKE_FOCUS msg

According to 4.1.7 of the iccm spec

http://tronche.com/gui/x/icccm/sec-4.html#s-4.1.7

> Windows with the atom WM_TAKE_FOCUS in their WM_PROTOCOLS property may
> receive a ClientMessage event from the window manager (as described in
> section 4.2.8) with WM_TAKE_FOCUS in its data[0] field and a valid
> timestamp (i.e. not CurrentTime ) in its data[1] field.

Adds the timestamp parameter to send_take_focus to avoid the dangerous
use of a global variable.
include/xcb.h
src/x.c
src/xcb.c