From 55dce70440dc27d6b0e38feccbf62422cfabe499 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 31 Aug 2015 23:20:29 +0100 Subject: [PATCH] gdk: stage: do not ensure native windows are created with foreign windows For foreign windows this should be dealt with by the embedding framework. In particular on Wayland with foreign windows, we might want to create a subsurface and use the foreign window only for events and frame clock synchronization. https://bugzilla.gnome.org/show_bug.cgi?id=754697 --- clutter/gdk/clutter-stage-gdk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c index 05c6fe354..3ab4b1e78 100644 --- a/clutter/gdk/clutter-stage-gdk.c +++ b/clutter/gdk/clutter-stage-gdk.c @@ -288,6 +288,7 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window) } clutter_stage_gdk_set_gdk_geometry (stage_gdk); + gdk_window_ensure_native (stage_gdk->window); } else { @@ -295,8 +296,6 @@ clutter_stage_gdk_realize (ClutterStageWindow *stage_window) height = gdk_window_get_height (stage_gdk->window); } - gdk_window_ensure_native (stage_gdk->window); - g_object_set_data (G_OBJECT (stage_gdk->window), "clutter-stage-window", stage_gdk); stage_cogl->onscreen = cogl_onscreen_new (backend->cogl_context,