diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-27 01:54:05 -0400 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-27 10:04:10 +0200 |
commit | 17f688735f3669a08585427341a9a2cf1cc3ea0d (patch) | |
tree | 94471045015acc3a7f58a6f533eb25937e00c866 /include/wlr | |
parent | 4e614683b73ec2209fbf054ea9a0d62c4c9527a1 (diff) |
wlr_xdg_toplevel_v6: store pending fullscreen output
Since the fullscreen request may be made before the toplevel's surface
is mapped, the requested fullscreen output needs to be stored so it
can be retrieved on map (along with the existing fullscreen property).
This commit makes the required changes for wlr_xdg_toplevel_v6.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_xdg_shell_v6.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xdg_shell_v6.h b/include/wlr/types/wlr_xdg_shell_v6.h index b3ea72e0..2e3a5495 100644 --- a/include/wlr/types/wlr_xdg_shell_v6.h +++ b/include/wlr/types/wlr_xdg_shell_v6.h @@ -112,6 +112,12 @@ struct wlr_xdg_toplevel_v6_state { uint32_t width, height; uint32_t max_width, max_height; uint32_t min_width, min_height; + + // Since the fullscreen request may be made before the toplevel's surface + // is mapped, this is used to store the requested fullscreen output (if + // any) for wlr_xdg_toplevel_v6::client_pending. + struct wlr_output *fullscreen_output; + struct wl_listener fullscreen_output_destroy; }; /** |