Bug 469756 - GDK_EXTENSION_EVENTS_CURSOR option is not enabled for gdk window. r=roc.
☠☠ backed out by 08b5d60cf872 ☠ ☠
authorOleg Romashin <romaxa@gmail.com>
Thu, 18 Dec 2008 09:51:18 -0500
changeset 22901 bdef726fb65611f014488424078f7535f77b15c2
parent 22900 eb18fff240df5a5197a28eb67e2b07f8ac6b1f17
child 22902 1a4e7f55120dc4c4e4116a5890eb4acf596e6d1c
child 22908 08b5d60cf872c0342029ad617bfa4916ff0d8ed5
push id4247
push userromaxa@gmail.com
push dateThu, 18 Dec 2008 07:53:42 +0000
treeherdermozilla-central@bdef726fb656 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs469756
milestone1.9.2a1pre
Bug 469756 - GDK_EXTENSION_EVENTS_CURSOR option is not enabled for gdk window. r=roc.
widget/src/gtk2/nsWindow.cpp
--- a/widget/src/gtk2/nsWindow.cpp
+++ b/widget/src/gtk2/nsWindow.cpp
@@ -3911,16 +3911,20 @@ nsWindow::NativeCreate(nsIWidget        
     g_object_set_data(G_OBJECT(mDrawingarea->inner_window), "nsWindow",
                       this);
 
     g_object_set_data(G_OBJECT(mDrawingarea->clip_window), "mozdrawingarea",
                       mDrawingarea);
     g_object_set_data(G_OBJECT(mDrawingarea->inner_window), "mozdrawingarea",
                       mDrawingarea);
 
+    gdk_input_set_extension_events(mDrawingarea->inner_window,
+                                   gdk_window_get_events(mDrawingarea->inner_window),
+                                   GDK_EXTENSION_EVENTS_CURSOR);
+
     if (mContainer)
         g_object_set_data(G_OBJECT(mContainer), "nsWindow", this);
 
     if (mShell)
         g_object_set_data(G_OBJECT(mShell), "nsWindow", this);
 
     // attach listeners for events
     if (mShell) {