Author: olivier
Date: 2006-07-08 15:55:39 +0000 (Sat, 08 Jul 2006)
New Revision: 22295

Modified:
   xfwm4/trunk/src/client.c
Log:
Prevent keyboard autorepeat from flooding the event queue.

Modified: xfwm4/trunk/src/client.c
===================================================================
--- xfwm4/trunk/src/client.c    2006-07-08 13:25:32 UTC (rev 22294)
+++ xfwm4/trunk/src/client.c    2006-07-08 15:55:39 UTC (rev 22295)
@@ -3814,6 +3814,12 @@
 
     if (xevent->type == KeyPress)
     {
+        while (XCheckMaskEvent (display_info->dpy, KeyPressMask, xevent))
+        {
+            /* Update the display time */
+            myDisplayUpdateCurentTime (display_info, xevent);
+        }
+
         if (passdata->use_keys)
         {
             int key_width_inc, key_height_inc;

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to