Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
xdg-shell: drop wlr_xdg_toplevel_set_fullscreen_event
Browse files Browse the repository at this point in the history
Instead, compositors can read relevant values from
wlr_xdg_toplevel.requested.
  • Loading branch information
Kirill Primak committed Oct 1, 2021
1 parent f2c0072 commit 97c9b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
6 changes: 0 additions & 6 deletions include/wlr/types/wlr_xdg_shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,6 @@ struct wlr_xdg_toplevel_resize_event {
uint32_t edges;
};

struct wlr_xdg_toplevel_set_fullscreen_event {
struct wlr_xdg_surface *surface;
bool fullscreen;
struct wlr_output *output;
};

struct wlr_xdg_toplevel_show_window_menu_event {
struct wlr_xdg_surface *surface;
struct wlr_seat_client *seat;
Expand Down
16 changes: 2 additions & 14 deletions types/xdg_shell/wlr_xdg_toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,7 @@ static void xdg_toplevel_handle_set_fullscreen(struct wl_client *client,

store_fullscreen_requested(surface, true, output);

struct wlr_xdg_toplevel_set_fullscreen_event event = {
.surface = surface,
.fullscreen = true,
.output = output,
};

wlr_signal_emit_safe(&surface->toplevel->events.request_fullscreen, &event);
wlr_signal_emit_safe(&surface->toplevel->events.request_fullscreen, surface);
wlr_xdg_surface_schedule_configure(surface);
}

Expand All @@ -395,13 +389,7 @@ static void xdg_toplevel_handle_unset_fullscreen(struct wl_client *client,

store_fullscreen_requested(surface, false, NULL);

struct wlr_xdg_toplevel_set_fullscreen_event event = {
.surface = surface,
.fullscreen = false,
.output = NULL,
};

wlr_signal_emit_safe(&surface->toplevel->events.request_fullscreen, &event);
wlr_signal_emit_safe(&surface->toplevel->events.request_fullscreen, surface);
wlr_xdg_surface_schedule_configure(surface);
}

Expand Down

0 comments on commit 97c9b2e

Please sign in to comment.