aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-01-08 22:52:57 +0300
committerKirill Primak <vyivel@eclair.cafe>2022-02-02 21:06:12 +0300
commit34a71eae313f55840e728500f7594fee4468226f (patch)
treeef640597364d9937a906e91513aaa6f43242c313
parentfd3a2a0906cc95a98c76cdf49a2f17cd23cc09e3 (diff)
xdg-shell: drop wlr_xdg_toplevel_set_fullscreen_event
Instead, compositors can read relevant values from wlr_xdg_toplevel.requested.
-rw-r--r--include/wlr/types/wlr_xdg_shell.h6
-rw-r--r--types/xdg_shell/wlr_xdg_toplevel.c16
2 files changed, 2 insertions, 20 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h
index a54d2723..4fcd6dd4 100644
--- a/include/wlr/types/wlr_xdg_shell.h
+++ b/include/wlr/types/wlr_xdg_shell.h
@@ -243,12 +243,6 @@ struct wlr_xdg_toplevel_resize_event {
uint32_t edges;
};
-struct wlr_xdg_toplevel_set_fullscreen_event {
- struct wlr_xdg_toplevel *toplevel;
- bool fullscreen;
- struct wlr_output *output;
-};
-
struct wlr_xdg_toplevel_show_window_menu_event {
struct wlr_xdg_toplevel *toplevel;
struct wlr_seat_client *seat;
diff --git a/types/xdg_shell/wlr_xdg_toplevel.c b/types/xdg_shell/wlr_xdg_toplevel.c
index ed7ecadd..ad2f0501 100644
--- a/types/xdg_shell/wlr_xdg_toplevel.c
+++ b/types/xdg_shell/wlr_xdg_toplevel.c
@@ -366,13 +366,7 @@ static void xdg_toplevel_handle_set_fullscreen(struct wl_client *client,
store_fullscreen_requested(toplevel, true, output);
- struct wlr_xdg_toplevel_set_fullscreen_event event = {
- .toplevel = toplevel,
- .fullscreen = true,
- .output = output,
- };
-
- wlr_signal_emit_safe(&toplevel->events.request_fullscreen, &event);
+ wlr_signal_emit_safe(&toplevel->events.request_fullscreen, NULL);
wlr_xdg_surface_schedule_configure(toplevel->base);
}
@@ -383,13 +377,7 @@ static void xdg_toplevel_handle_unset_fullscreen(struct wl_client *client,
store_fullscreen_requested(toplevel, false, NULL);
- struct wlr_xdg_toplevel_set_fullscreen_event event = {
- .toplevel = toplevel,
- .fullscreen = false,
- .output = NULL,
- };
-
- wlr_signal_emit_safe(&toplevel->events.request_fullscreen, &event);
+ wlr_signal_emit_safe(&toplevel->events.request_fullscreen, NULL);
wlr_xdg_surface_schedule_configure(toplevel->base);
}