Author: lewing
Date: 2008-01-10 21:15:24 -0500 (Thu, 10 Jan 2008)
New Revision: 92647

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.cpp
Log:
        * runtime.cpp (Surface::InitializeDrawingArea): realize the widget
        before setting the extension events (lame api) and disable the
        cursor test.


Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2008-01-11 01:15:48 UTC (rev 92646)
+++ trunk/moon/src/ChangeLog    2008-01-11 02:15:24 UTC (rev 92647)
@@ -1,3 +1,9 @@
+2008-01-10  Larry Ewing  <[EMAIL PROTECTED]>
+
+       * runtime.cpp (Surface::InitializeDrawingArea): realize the widget
+       before setting the extension events (lame api) and disable the
+       cursor test.
+
 2008-01-10  Chris Toshok  <[EMAIL PROTECTED]>
 
        * runtime.cpp (Surface::InitializeDrawingArea): activate all

Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp  2008-01-11 01:15:48 UTC (rev 92646)
+++ trunk/moon/src/runtime.cpp  2008-01-11 02:15:24 UTC (rev 92647)
@@ -714,17 +714,23 @@
                               GDK_BUTTON_PRESS_MASK |
                               GDK_BUTTON_RELEASE_MASK);
 
+       GTK_WIDGET_SET_FLAGS (drawing_area, GTK_CAN_FOCUS);
+
+       gtk_widget_show (drawing_area);
+
+       // The window has to be realized for this call to work
        gtk_widget_set_extension_events (drawing_area, 
GDK_EXTENSION_EVENTS_CURSOR);
        /* we need to explicitly enable the devices */
        for (GList *l = gdk_devices_list(); l; l = l->next) {
                GdkDevice *device = GDK_DEVICE(l->data);
-               if (device->has_cursor)
-                       gdk_device_set_mode (device, GDK_MODE_SCREEN);
+
+               // It seems like we should check for a cursor but testing
+               // contradicts that.
+               //if (device->has_cursor)
+               gdk_device_set_mode (device, GDK_MODE_SCREEN);
        }
 
        GTK_WIDGET_SET_FLAGS (drawing_area, GTK_CAN_FOCUS);
-
-       gtk_widget_show (drawing_area);
 }
 
 void

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to