diff options
author | Ryan Dwyer <[email protected]> | 2018-04-17 11:04:57 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-04-17 11:04:57 +1000 |
commit | 143b528f71ea71393368815eecebf900ff45cf9d (patch) | |
tree | c68c826d6b2d585e053912ccf7254f9e442831da /sway/desktop/wl_shell.c | |
parent | a44d016e2b24a3454551c27f9252b4c419968760 (diff) |
Handle fullscreen flag when mapping a surface.
Diffstat (limited to 'sway/desktop/wl_shell.c')
-rw-r--r-- | sway/desktop/wl_shell.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/desktop/wl_shell.c b/sway/desktop/wl_shell.c index b63c220c..96332e5c 100644 --- a/sway/desktop/wl_shell.c +++ b/sway/desktop/wl_shell.c @@ -128,4 +128,8 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) { wl_signal_add(&shell_surface->events.destroy, &wl_shell_view->destroy); view_map(&wl_shell_view->view, shell_surface->surface); + + if (shell_surface->state == WLR_WL_SHELL_SURFACE_STATE_FULLSCREEN) { + view_set_fullscreen(&wl_shell_view->view, true); + } } |