aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2024-08-04 13:03:59 -0400
committerSimon Ser <contact@emersion.fr>2024-09-20 19:48:52 +0200
commit9d667383b43c672e25aa8c3d5cf0779007b466af (patch)
treea9cf8090e57e0d9ae2acbbab2a64c35bd49dae15 /include
parentbb666f2ac9e67df16fed7206c533ae28d4d7d7c0 (diff)
text_input: Properly handle map/unmap events
The last implementation would ignore these and get it could get into a bad state where it would start crashing sway. (cherry picked from commit 74e507962e32ec8d6606d28383ac109fbf2370e4)
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/text_input_popup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/text_input_popup.h b/include/sway/input/text_input_popup.h
index 97dd6444..7e838ed2 100644
--- a/include/sway/input/text_input_popup.h
+++ b/include/sway/input/text_input_popup.h
@@ -15,6 +15,8 @@ struct sway_input_popup {
struct wl_listener popup_destroy;
struct wl_listener popup_surface_commit;
+ struct wl_listener popup_surface_map;
+ struct wl_listener popup_surface_unmap;
struct wl_listener focused_surface_unmap;
};