wayland: Correctly support fullscreening before the stage is realized
Rather than just call into wl_shell_surface_set_fullscreen we must repeat all the steps to correctly fullscreen the surface.
This commit is contained in:
parent
797336762e
commit
78533cfd1a
@ -75,6 +75,10 @@ static const struct wl_shell_surface_listener shell_surface_listener = {
|
|||||||
handle_configure,
|
handle_configure,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void
|
||||||
|
clutter_stage_wayland_set_fullscreen (ClutterStageWindow *stage_window,
|
||||||
|
gboolean fullscreen);
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
|
clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
|
||||||
{
|
{
|
||||||
@ -98,7 +102,7 @@ clutter_stage_wayland_realize (ClutterStageWindow *stage_window)
|
|||||||
stage_wayland->wayland_shell_surface = wl_shell_surface;
|
stage_wayland->wayland_shell_surface = wl_shell_surface;
|
||||||
|
|
||||||
if (stage_wayland->fullscreen)
|
if (stage_wayland->fullscreen)
|
||||||
wl_shell_surface_set_fullscreen (stage_wayland->wayland_shell_surface);
|
clutter_stage_wayland_set_fullscreen (stage_window, TRUE);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user