aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Kirill Primak <vyivel@eclair.cafe>2023-07-26 20:32:33 +0300
committerLibravatar Simon Ser <contact@emersion.fr>2023-08-21 18:41:32 +0200
commita9086518219c0ace4a5d81c2f7219dae3b6aa20c (patch)
tree5593753d34eee2ea4651bfecd1c238cfe18263c9 /sway/input/cursor.c
parentchase wlroots!4316 (diff)
downloadsway-a9086518219c0ace4a5d81c2f7219dae3b6aa20c.tar.gz
sway-a9086518219c0ace4a5d81c2f7219dae3b6aa20c.tar.zst
sway-a9086518219c0ace4a5d81c2f7219dae3b6aa20c.zip
chore: chase wlroots xdg-surface role rework
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 62c74d04..44a5d6f7 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -56,7 +56,8 @@ static struct wlr_surface *layer_surface_at(struct sway_output *output,
56static bool surface_is_xdg_popup(struct wlr_surface *surface) { 56static bool surface_is_xdg_popup(struct wlr_surface *surface) {
57 struct wlr_xdg_surface *xdg_surface = 57 struct wlr_xdg_surface *xdg_surface =
58 wlr_xdg_surface_try_from_wlr_surface(surface); 58 wlr_xdg_surface_try_from_wlr_surface(surface);
59 return xdg_surface != NULL && xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP; 59 return xdg_surface != NULL && xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP &&
60 xdg_surface->popup != NULL;
60} 61}
61 62
62static struct wlr_surface *layer_surface_popup_at(struct sway_output *output, 63static struct wlr_surface *layer_surface_popup_at(struct sway_output *output,