mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[stage-x11] Set the geometry size for foreign wins
If we get into the resize function and it's a foreign window, set the geometry size so that the allocate will set the backend size and call glViewport.
This commit is contained in:
parent
c2d0164712
commit
df6e7aee73
@ -200,6 +200,13 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
|
||||
ClutterStage *stage = stage_x11->wrapper;
|
||||
gboolean resize;
|
||||
|
||||
if (stage_x11->is_foreign_xwin)
|
||||
{
|
||||
stage_x11->xwin_width = width;
|
||||
stage_x11->xwin_height = height;
|
||||
return;
|
||||
}
|
||||
|
||||
/* If we're going fullscreen, don't mess with the size */
|
||||
if (stage_x11->fullscreening)
|
||||
return;
|
||||
@ -221,7 +228,7 @@ clutter_stage_x11_resize (ClutterStageWindow *stage_window,
|
||||
|
||||
CLUTTER_NOTE (BACKEND, "New size received: (%d, %d)", width, height);
|
||||
|
||||
if (stage_x11->xwin != None && !stage_x11->is_foreign_xwin)
|
||||
if (stage_x11->xwin != None)
|
||||
{
|
||||
clutter_stage_x11_fix_window_size (stage_x11, width, height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user