From 197ee0ad4732c8668fe38a6b49e0a747866ef3ea Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 16 Apr 2010 22:23:37 -0400 Subject: event_curtime is replaced (publicly) by event_time() This function never returns CurrentTime, which is nice, cuz using CurrentTime for XSetFocus always sucks. If the current XEvent did not have a timestamp, then event_time() will find one. It finds the first timestamp available in the X event queue, meaning the earliest timestamp >= the current (nontimestamped) event. All future events should have a timestamp >= event_time(), so using this in XSetFocus() should not mess up any future calls we make to it. This change seems to work well, as it appears to fix bug #3648. --- openbox/moveresize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/moveresize.c') diff --git a/openbox/moveresize.c b/openbox/moveresize.c index aa1957af..cb0d2101 100644 --- a/openbox/moveresize.c +++ b/openbox/moveresize.c @@ -388,7 +388,7 @@ static void do_resize(void) ce.xclient.window = moveresize_client->window; ce.xclient.format = 32; ce.xclient.data.l[0] = OBT_PROP_ATOM(NET_WM_SYNC_REQUEST); - ce.xclient.data.l[1] = event_curtime; + ce.xclient.data.l[1] = event_time(); ce.xclient.data.l[2] = XSyncValueLow32(val); ce.xclient.data.l[3] = XSyncValueHigh32(val); ce.xclient.data.l[4] = 0l; -- cgit v1.2.3