summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2010-12-10 09:37:44 +0100
committerOlivier Fourdan <fourdan@xfce.org>2010-12-10 09:37:44 +0100
commit54815774a1eb8f9b3d578783c95ddbbe1443b7d8 (patch)
tree424bffc4de5974c6c3aca58954e514913541d0cc
parentf72ff9f73c9f91b3cbb5ae8fd8207d5a4389cd0e (diff)
downloadxfwm4-54815774a1eb8f9b3d578783c95ddbbe1443b7d8.tar.gz
Bug 6334: Use lower prio for double click timeout
The rationale is to use a lower priority for checking for double click timeout, in case we have a click event in time in the event queue.
-rw-r--r--src/events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/events.c b/src/events.c
index d5295380d..bd34d138e 100644
--- a/src/events.c
+++ b/src/events.c
@@ -255,7 +255,8 @@ typeOfClick (ScreenInfo *screen_info, Window w, XEvent * ev, gboolean allow_doub
passdata.double_click_distance = display_info->double_click_distance;
TRACE ("Double click time= %i, distance=%i\n", display_info->double_click_time,
display_info->double_click_distance);
- passdata.timeout = g_timeout_add_full (G_PRIORITY_DEFAULT,
+ /* Use G_PRIORITY_DEFAULT_IDLE to make sure the timeout occurs after possible events */
+ passdata.timeout = g_timeout_add_full (G_PRIORITY_DEFAULT_IDLE,
display_info->double_click_time,
(GSourceFunc) typeOfClick_end,
(gpointer) &passdata, NULL);