gdk: stage: report geometry of the underlying surface for foreign windows
When running on wayland, we might have our own subsurface desynchronized from the foreign GdkWindow. It is important that we report the size of the actually surface we're rendering to, otherwise the logic in ClutterStage might discard resize operation that resynchronize the subsurface with the stage's size. https://bugzilla.gnome.org/show_bug.cgi?id=754697
This commit is contained in:
parent
55dce70440
commit
3771ef2f08
@ -122,6 +122,8 @@ clutter_stage_gdk_get_geometry (ClutterStageWindow *stage_window,
|
|||||||
{
|
{
|
||||||
ClutterStageGdk *stage_gdk = CLUTTER_STAGE_GDK (stage_window);
|
ClutterStageGdk *stage_gdk = CLUTTER_STAGE_GDK (stage_window);
|
||||||
|
|
||||||
|
if (!stage_gdk->foreign_window)
|
||||||
|
{
|
||||||
if (stage_gdk->window != NULL)
|
if (stage_gdk->window != NULL)
|
||||||
{
|
{
|
||||||
geometry->width = gdk_window_get_width (stage_gdk->window);
|
geometry->width = gdk_window_get_width (stage_gdk->window);
|
||||||
@ -133,6 +135,9 @@ clutter_stage_gdk_get_geometry (ClutterStageWindow *stage_window,
|
|||||||
geometry->height = 480;
|
geometry->height = 480;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
clutter_stage_window_parent_iface->get_geometry (stage_window, geometry);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
clutter_stage_gdk_resize (ClutterStageWindow *stage_window,
|
clutter_stage_gdk_resize (ClutterStageWindow *stage_window,
|
||||||
|
Loading…
Reference in New Issue
Block a user