mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-24 12:30:11 +01:00
kiosk-shell: Fix fullscreen_requests
The output can be NULL, so that must be tested before looking up the
shell_output from the output.
Fixes 77dcbe381f
Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
5eb316d77c
commit
e1ac6139ca
1 changed files with 4 additions and 1 deletions
|
|
@ -1133,8 +1133,11 @@ desktop_surface_fullscreen_requested(struct weston_desktop_surface *desktop_surf
|
||||||
{
|
{
|
||||||
struct kiosk_shell_surface *shsurf =
|
struct kiosk_shell_surface *shsurf =
|
||||||
weston_desktop_surface_get_user_data(desktop_surface);
|
weston_desktop_surface_get_user_data(desktop_surface);
|
||||||
struct kiosk_shell_output *shoutput =
|
struct kiosk_shell_output *shoutput = NULL;
|
||||||
|
|
||||||
|
if (output)
|
||||||
weston_output_get_shell_private(output);
|
weston_output_get_shell_private(output);
|
||||||
|
|
||||||
/* We should normally be able to ignore fullscreen requests for
|
/* We should normally be able to ignore fullscreen requests for
|
||||||
* top-level surfaces, since we set them as fullscreen at creation
|
* top-level surfaces, since we set them as fullscreen at creation
|
||||||
* time. However, xwayland surfaces set their internal WM state
|
* time. However, xwayland surfaces set their internal WM state
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue