diff options
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 | } |