summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorMightyPlaza <123664421+MightyPlaza@users.noreply.github.com>2024-02-04 15:40:20 +0000
committerGitHub <noreply@github.com>2024-02-04 15:40:20 +0000
commitcbadf3e3f31ab5ad5d192daac5f2ca930d08b8fb (patch)
tree40fe310e5ffb955a19b32a2c8d234b3bdf9e45cb /src/Window.hpp
parent1ed4f1cb254ce4b4e55727d972998be1ef4baf22 (diff)
input: focus window on mouse down on decoration (#4514)
Also unifies vectorToWindow funcs
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp12
1 files changed, 11 insertions, 1 deletions
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 <typename T>
@@ -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<IHyprWindowDecoration> deco);