diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-08-31 23:20:29 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-09-07 18:17:10 +0100 |
commit | 55dce70440dc27d6b0e38feccbf62422cfabe499 (patch) | |
tree | f4cfd37005ee2ee2133d2108571cdee65535cd91 | |
parent | a9b38fefdc097427cc33ca2b8d527415ee4f157b (diff) | |
download | clutter-55dce70440dc27d6b0e38feccbf62422cfabe499.tar.gz |
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
-rw-r--r-- | 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 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, |