summaryrefslogtreecommitdiff
path: root/src/Window.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-04 12:05:25 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-07-04 12:05:25 +0200
commit18f9fb5e0fdb3fdc1aebe61b3c589bc23aed1e9f (patch)
tree74cd33c195e5486a7a998ade7e29c715032d06c8 /src/Window.hpp
parent6f91997f069a92c23886888e51c27d02d50a6a96 (diff)
rules: add stayfocused
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
index 2cb6eb95..eef5aac6 100644
--- a/src/Window.hpp
+++ b/src/Window.hpp
@@ -10,7 +10,8 @@
#include "helpers/Vector2D.hpp"
#include "helpers/WLSurface.hpp"
-enum eIdleInhibitMode {
+enum eIdleInhibitMode
+{
IDLEINHIBIT_NONE = 0,
IDLEINHIBIT_ALWAYS,
IDLEINHIBIT_FULLSCREEN,
@@ -278,6 +279,9 @@ class CWindow {
// swallowing
CWindow* m_pSwallowed = nullptr;
+ // focus stuff
+ bool m_bStayFocused = false;
+
// for toplevel monitor events
uint64_t m_iLastToplevelMonitorID = -1;
uint64_t m_iLastSurfaceMonitorID = -1;