diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-04 12:05:25 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-04 12:05:25 +0200 |
| commit | 18f9fb5e0fdb3fdc1aebe61b3c589bc23aed1e9f (patch) | |
| tree | 74cd33c195e5486a7a998ade7e29c715032d06c8 /src/Window.hpp | |
| parent | 6f91997f069a92c23886888e51c27d02d50a6a96 (diff) | |
rules: add stayfocused
Diffstat (limited to 'src/Window.hpp')
| -rw-r--r-- | src/Window.hpp | 6 |
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; |
