diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-01 20:24:40 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2023-02-02 14:53:15 +0300 |
commit | 9959e6b8dc9b7fbfcccd516e38bc50681f38e275 (patch) | |
tree | 8a59226530bc87f2299ee9934f99618ab089af81 /sway/xdg_activation_v1.c | |
parent | root: free non_desktop_outputs list on root_destroy (diff) | |
download | sway-9959e6b8dc9b7fbfcccd516e38bc50681f38e275.tar.gz sway-9959e6b8dc9b7fbfcccd516e38bc50681f38e275.tar.zst sway-9959e6b8dc9b7fbfcccd516e38bc50681f38e275.zip |
Convert to *_try_from_wlr_surface()
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3991
Diffstat (limited to 'sway/xdg_activation_v1.c')
-rw-r--r-- | sway/xdg_activation_v1.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sway/xdg_activation_v1.c b/sway/xdg_activation_v1.c index 2b94136c..cc3dcec0 100644 --- a/sway/xdg_activation_v1.c +++ b/sway/xdg_activation_v1.c | |||
@@ -6,12 +6,8 @@ void xdg_activation_v1_handle_request_activate(struct wl_listener *listener, | |||
6 | void *data) { | 6 | void *data) { |
7 | const struct wlr_xdg_activation_v1_request_activate_event *event = data; | 7 | const struct wlr_xdg_activation_v1_request_activate_event *event = data; |
8 | 8 | ||
9 | if (!wlr_surface_is_xdg_surface(event->surface)) { | ||
10 | return; | ||
11 | } | ||
12 | |||
13 | struct wlr_xdg_surface *xdg_surface = | 9 | struct wlr_xdg_surface *xdg_surface = |
14 | wlr_xdg_surface_from_wlr_surface(event->surface); | 10 | wlr_xdg_surface_try_from_wlr_surface(event->surface); |
15 | if (xdg_surface == NULL) { | 11 | if (xdg_surface == NULL) { |
16 | return; | 12 | return; |
17 | } | 13 | } |