From: Dana Jansens Date: Thu, 12 Apr 2007 02:26:58 +0000 (+0000) Subject: set event_curtime if we're going to use it only X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ceaf23b6b4965ad2841e8763934715fe45b75685;p=chaz%2Fopenbox set event_curtime if we're going to use it only --- diff --git a/openbox/event.c b/openbox/event.c index 3aa91c61..7dfcc0c7 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -560,9 +560,11 @@ static void event_handle_root(XEvent *e) msgtype = e->xclient.message_type; if (msgtype == prop_atoms.net_current_desktop) { guint d = e->xclient.data.l[0]; - event_curtime = e->xclient.data.l[1]; - if (d < screen_num_desktops) + if (d < screen_num_desktops) { + event_curtime = e->xclient.data.l[1]; + ob_debug("SWITCH DESKTOP TIME: %d\n", event_curtime); screen_set_desktop(d); + } } else if (msgtype == prop_atoms.net_number_of_desktops) { guint d = e->xclient.data.l[0]; if (d > 0)