From cbadf3e3f31ab5ad5d192daac5f2ca930d08b8fb Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Sun, 4 Feb 2024 15:40:20 +0000 Subject: input: focus window on mouse down on decoration (#4514) Also unifies vectorToWindow funcs --- src/Window.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/Window.hpp') diff --git a/src/Window.hpp b/src/Window.hpp index bbe7dc07..b0689b61 100644 --- a/src/Window.hpp +++ b/src/Window.hpp @@ -30,6 +30,16 @@ enum eGroupRules { GROUP_OVERRIDE = 1 << 6, // Override other rules }; +enum eGetWindowProperties { + WINDOW_ONLY = 0, + RESERVED_EXTENTS = 1 << 0, + INPUT_EXTENTS = 1 << 1, + FULL_EXTENTS = 1 << 2, + FLOATING_ONLY = 1 << 3, + ALLOW_FLOATING = 1 << 4, + USE_PROP_TILED = 1 << 5 +}; + class IWindowTransformer; template @@ -342,7 +352,7 @@ class CWindow { // methods CBox getFullWindowBoundingBox(); SWindowDecorationExtents getFullWindowExtents(); - CBox getWindowInputBox(); + CBox getWindowBoxUnified(uint64_t props); CBox getWindowMainSurfaceBox(); CBox getWindowIdealBoundingBoxIgnoreReserved(); void addWindowDeco(std::unique_ptr deco); -- cgit v1.2.3