aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2019-04-26 17:09:43 +0200
committerSimon Ser <contact@emersion.fr>2019-04-29 00:00:53 +0300
commit4e6c17a7c9d419112f147ddd62a40d942382ab8e (patch)
treef464a2ede31b1392ef25a7531089aab85730f2df /include/wlr
parenta656e486f4a62c18913a2acdc9febd34edd1ed18 (diff)
foreign-toplevel: support fullscreen state and request
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_foreign_toplevel_management_v1.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_foreign_toplevel_management_v1.h b/include/wlr/types/wlr_foreign_toplevel_management_v1.h
index 75ae0e64..6b234eb9 100644
--- a/include/wlr/types/wlr_foreign_toplevel_management_v1.h
+++ b/include/wlr/types/wlr_foreign_toplevel_management_v1.h
@@ -28,9 +28,10 @@ struct wlr_foreign_toplevel_manager_v1 {
};
enum wlr_foreign_toplevel_handle_v1_state {
- WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MAXIMIZED = 1,
- WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MINIMIZED = 2,
- WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_ACTIVATED = 4,
+ WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MAXIMIZED = (1 << 0),
+ WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_MINIMIZED = (1 << 1),
+ WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_ACTIVATED = (1 << 2),
+ WLR_FOREIGN_TOPLEVEL_HANDLE_V1_STATE_FULLSCREEN = (1 << 3),
};
struct wlr_foreign_toplevel_handle_v1_output {
@@ -59,6 +60,8 @@ struct wlr_foreign_toplevel_handle_v1 {
struct wl_signal request_minimize;
//wlr_foreign_toplevel_handle_v1_activated_event
struct wl_signal request_activate;
+ //wlr_foreign_toplevel_handle_v1_fullscreen_event
+ struct wl_signal request_fullscreen;
struct wl_signal request_close;
//wlr_foreign_toplevel_handle_v1_set_rectangle_event
@@ -84,6 +87,12 @@ struct wlr_foreign_toplevel_handle_v1_activated_event {
struct wlr_seat *seat;
};
+struct wlr_foreign_toplevel_handle_v1_fullscreen_event {
+ struct wlr_foreign_toplevel_handle_v1 *toplevel;
+ bool fullscreen;
+ struct wlr_output *output;
+};
+
struct wlr_foreign_toplevel_handle_v1_set_rectangle_event {
struct wlr_foreign_toplevel_handle_v1 *toplevel;
struct wlr_surface *surface;
@@ -116,5 +125,7 @@ void wlr_foreign_toplevel_handle_v1_set_minimized(
struct wlr_foreign_toplevel_handle_v1 *toplevel, bool minimized);
void wlr_foreign_toplevel_handle_v1_set_activated(
struct wlr_foreign_toplevel_handle_v1 *toplevel, bool activated);
+void wlr_foreign_toplevel_handle_v1_set_fullscreen(
+ struct wlr_foreign_toplevel_handle_v1* toplevel, bool fullscreen);
#endif