From d657b59f701a65c7a85986e8d99754716468ee5b Mon Sep 17 00:00:00 2001 From: Junxuan Liao <70618504+MikeWalrus@users.noreply.github.com> Date: Sun, 7 Apr 2024 22:15:50 +0800 Subject: IME: fix IME popup mouse inputs (again) (#5417) `lastBoxLocal`'s size should be the actual popup's size instead of the cursor rectangle's size. Also, the rectangle position is now relative to the popup. (Actually fixes #5255 imho.) One thing #3922 missed was handling focus held by buttons. Let's hope I get it right this time. --- src/managers/input/InputMethodRelay.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/managers/input/InputMethodRelay.hpp') diff --git a/src/managers/input/InputMethodRelay.hpp b/src/managers/input/InputMethodRelay.hpp index eb7c9f64..01d36675 100644 --- a/src/managers/input/InputMethodRelay.hpp +++ b/src/managers/input/InputMethodRelay.hpp @@ -35,6 +35,7 @@ class CInputMethodRelay { void removePopup(CInputPopup*); CInputPopup* popupFromCoords(const Vector2D& point); + CInputPopup* popupFromSurface(const wlr_surface* surface); void updateAllPopups(); -- cgit v1.2.3