egl: fix args to cogl_onscreen_x11_set_foreign_window_xid
authorRobert Bragg <robert@linux.intel.com>
Mon, 9 May 2011 00:09:39 +0000 (01:09 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 14 Jun 2011 19:19:27 +0000 (20:19 +0100)
We hadn't updated the egl backend inline with a change to the arguments
that cogl_onscreen_x11_set_foreign_window_xid would expect and that was
causing a compilation error.

clutter/egl/clutter-stage-egl.c

index 887494e..1de7d4a 100644 (file)
@@ -78,8 +78,14 @@ clutter_stage_egl_realize (ClutterStageWindow *stage_window)
                                            width, height);
 #ifdef COGL_HAS_XLIB_SUPPORT
   if (stage_x11->xwin != None)
-    cogl_onscreen_x11_set_foreign_window_xid (stage_egl->onscreen,
-                                              stage_x11->xwin);
+    {
+      cogl_onscreen_x11_set_foreign_window_xid (
+                                  stage_egl->onscreen,
+                                  stage_x11->xwin,
+                                  _clutter_stage_x11_update_foreign_event_mask,
+                                  stage_x11);
+
+    }
 #endif
 
   clutter_vblank = _clutter_backend_egl_get_vblank ();