gpointing-device-settings r199 - trunk/src



Author: hiikezoe
Date: Wed Mar 11 03:18:41 2009
New Revision: 199
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=199&view=rev

Log:
Invoke gdk_flush before gdk_trap_pop().

Modified:
   trunk/src/gpds-xinput.c

Modified: trunk/src/gpds-xinput.c
==============================================================================
--- trunk/src/gpds-xinput.c	(original)
+++ trunk/src/gpds-xinput.c	Wed Mar 11 03:18:41 2009
@@ -250,6 +250,7 @@
                           device, property_atom,
                           XA_INTEGER, format_type, PropModeReplace,
                           (unsigned char*)property_data, n_properties);
+    gdk_flush();
     gdk_error_trap_pop();
 
     g_free(property_data);
@@ -397,6 +398,7 @@
     status =  XGetDeviceProperty(GDK_DISPLAY(), device, atom, 0, 1000, False,
                                  XA_INTEGER, &actual_type, &actual_format,
                                  n_values, &bytes_after, &data);
+    gdk_flush();
     gdk_error_trap_pop();
 
     if (status != Success)
@@ -486,6 +488,7 @@
                           device, property_atom,
                           float_atom, 32, PropModeReplace,
                           (unsigned char*)property_data, n_properties);
+    gdk_flush();
     gdk_error_trap_pop();
 
     g_free(property_data);
@@ -550,6 +553,7 @@
     status =  XGetDeviceProperty(GDK_DISPLAY(), device, property_atom, 0, 1000, False,
                                  float_atom, &actual_type, &actual_format,
                                  n_properties, &bytes_after, &data);
+    gdk_flush();
     gdk_error_trap_pop();
 
     if (status != Success)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]