[stage-x11] Fix resizing for foreign windows
As well as manually setting the geometry size, we needed to queue a relayout. This is what the ConfigureNotify handler would normally do, but we don't get this event when using a foreign window (obviously). This should fix resizing in things like gtk-clutter.
This commit is contained in:
parent
df6e7aee73
commit
f9f03894a6
@ -202,8 +202,13 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
|
||||
|
||||
if (stage_x11->is_foreign_xwin)
|
||||
{
|
||||
/* If this is a foreign window we won't get a ConfigureNotify,
|
||||
* so we need to manually set the size and queue a relayout on the
|
||||
* stage here (as is normally done in response to ConfigureNotify).
|
||||
*/
|
||||
stage_x11->xwin_width = width;
|
||||
stage_x11->xwin_height = height;
|
||||
clutter_actor_queue_relayout (stage_x11->wrapper);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user