summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-14 22:19:49 +0000
committerVaxry <vaxry@vaxry.net>2024-02-14 22:19:49 +0000
commit7f52db806c149cb3331d6567706e7c19f5a8b692 (patch)
tree7068c594e615d563eba5257d1cffc89f7d649dac /src/Window.hpp
parent305b1419c8ff463836324168946bc34417dc0310 (diff)
windowrules: add suppressevent
deprecates nofullscreenrequest nomaximizerequest
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
index d4a34c8d..38eb857c 100644
--- a/src/Window.hpp
+++ b/src/Window.hpp
@@ -37,7 +37,15 @@ enum eGetWindowProperties {
FULL_EXTENTS = 1 << 2,
FLOATING_ONLY = 1 << 3,
ALLOW_FLOATING = 1 << 4,
- USE_PROP_TILED = 1 << 5
+ USE_PROP_TILED = 1 << 5,
+};
+
+enum eSuppressEvents {
+ SUPPRESS_NONE = 0,
+ SUPPRESS_FULLSCREEN = 1 << 0,
+ SUPPRESS_MAXIMIZE = 1 << 1,
+ SUPPRESS_ACTIVATE = 1 << 2,
+ SUPPRESS_ACTIVATE_FOCUSONLY = 1 << 3,
};
class IWindowTransformer;
@@ -264,9 +272,10 @@ class CWindow {
bool m_bNoInitialFocus = false;
// Fullscreen and Maximize
- bool m_bWantsInitialFullscreen = false;
- bool m_bNoFullscreenRequest = false;
- bool m_bNoMaximizeRequest = false;
+ bool m_bWantsInitialFullscreen = false;
+
+ // bitfield eSuppressEvents
+ uint64_t m_eSuppressedEvents = SUPPRESS_NONE;
SSurfaceTreeNode* m_pSurfaceTree = nullptr;