From d2b42e29c66fc0f6411ce64fa7e14e1b5fcc1c3f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 22 Mar 2024 18:45:24 +0000 Subject: IME: fix crashes with destroyed text-inputs ref #5189 --- src/helpers/WLClasses.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/helpers/WLClasses.hpp') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 806bf778..210405f6 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -295,10 +295,14 @@ struct STextInput { STextInputV1* pV1Input = nullptr; wlr_surface* focusedSurface = nullptr; + void setFocusedSurface(wlr_surface* pSurface); + DYNLISTENER(textInputEnable); DYNLISTENER(textInputDisable); DYNLISTENER(textInputCommit); DYNLISTENER(textInputDestroy); + DYNLISTENER(surfaceUnmapped); + DYNLISTENER(surfaceDestroyed); }; struct SIMEKbGrab { -- cgit v1.2.3