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
This commit is contained in:
parent
a9b38fefdc
commit
55dce70440
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user