[clutter] gdk: stage: do not ensure native windows are created with foreign windows



commit 55dce70440dc27d6b0e38feccbf62422cfabe499
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Mon Aug 31 23:20:29 2015 +0100

    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 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/clutter/gdk/clutter-stage-gdk.c b/clutter/gdk/clutter-stage-gdk.c
index 05c6fe3..3ab4b1e 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,


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