summaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorZephyr Lykos <[email protected]>2024-08-14 04:39:55 +0000
committerGitHub <[email protected]>2024-08-14 00:39:55 -0400
commit19f76f3dcd0dfb19826c6f5ea55a0d6c37e2bcd8 (patch)
tree5d0ddf468570562be56d92a945584e0032ce8820 /sway/tree/container.c
parentc861623887ca88fdbf4752a3623f4b5b146b1995 (diff)
text_input: Implement input-method popups (#315)
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 9b90b774..2de58a26 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -397,6 +397,9 @@ static bool surface_is_popup(struct wlr_surface *surface) {
}
surface = subsurface->parent;
}
+ if (wlr_input_popup_surface_v2_try_from_wlr_surface(surface) != NULL) {
+ return true;
+ }
struct wlr_xdg_surface *xdg_surface =
wlr_xdg_surface_try_from_wlr_surface(surface);
return xdg_surface->role == WLR_XDG_SURFACE_ROLE_POPUP && xdg_surface->popup != NULL;