summaryrefslogtreecommitdiff
path: root/src/desktop/state
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-22 17:53:28 +0100
committerVaxry <vaxry@vaxry.net>2025-12-22 17:53:28 +0100
commitabffe75088e2d776e14e5dbd726a835fa157df9a (patch)
tree7ae3a93e0705774848c3d4a22474191323109ca1 /src/desktop/state
parent60efbf3f63bec3100477ea9ba6cd634e35d5aeaa (diff)
desktop/window: improve fullscreen handling for grouped windows
fixes #12700
Diffstat (limited to 'src/desktop/state')
-rw-r--r--src/desktop/state/FocusState.cpp5
-rw-r--r--src/desktop/state/FocusState.hpp2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/desktop/state/FocusState.cpp b/src/desktop/state/FocusState.cpp
index e6257690..2c1158be 100644
--- a/src/desktop/state/FocusState.cpp
+++ b/src/desktop/state/FocusState.cpp
@@ -289,3 +289,8 @@ PHLWINDOW CFocusState::window() {
PHLMONITOR CFocusState::monitor() {
return m_focusMonitor.lock();
}
+
+void CFocusState::resetWindowFocus() {
+ m_focusWindow.reset();
+ m_focusSurface.reset();
+}
diff --git a/src/desktop/state/FocusState.hpp b/src/desktop/state/FocusState.hpp
index 5603b0cc..93ab2215 100644
--- a/src/desktop/state/FocusState.hpp
+++ b/src/desktop/state/FocusState.hpp
@@ -20,6 +20,8 @@ namespace Desktop {
void rawSurfaceFocus(SP<CWLSurfaceResource> s, PHLWINDOW pWindowOwner = nullptr);
void rawMonitorFocus(PHLMONITOR m);
+ void resetWindowFocus();
+
SP<CWLSurfaceResource> surface();
PHLWINDOW window();
PHLMONITOR monitor();