From 34cd8b125ad9f03ababd7789ebe12eac69e23227 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 14 Oct 2022 20:46:32 +0100 Subject: rework focus system to be more safe and faster --- src/managers/input/InputManager.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/managers/input/InputManager.hpp') diff --git a/src/managers/input/InputManager.hpp b/src/managers/input/InputManager.hpp index 8e94a5d6..81f84c9b 100644 --- a/src/managers/input/InputManager.hpp +++ b/src/managers/input/InputManager.hpp @@ -20,6 +20,8 @@ enum eMouseBindMode { struct STouchData { CWindow* touchFocusWindow = nullptr; + SLayerSurface* touchFocusLS = nullptr; + wlr_surface* touchFocusSurface = nullptr; Vector2D touchSurfaceOrigin; }; @@ -140,6 +142,11 @@ private: STabletTool* ensureTabletToolPresent(wlr_tablet_tool*); void applyConfigToKeyboard(SKeyboard*); + + // this will be set after a refocus() + wlr_surface* m_pFoundSurfaceToFocus = nullptr; + SLayerSurface* m_pFoundLSToFocus = nullptr; + CWindow* m_pFoundWindowToFocus = nullptr; }; inline std::unique_ptr g_pInputManager; -- cgit v1.2.3