summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowGroupTarget.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-05-07 15:21:06 +0100
committerGitHub <noreply@github.com>2026-05-07 15:21:06 +0100
commit58833eb1d79d7f03402cee0730c309b79f2e4501 (patch)
tree180cadc5d2e6fcb9e2f090eeccc6fb4ccace9b51 /src/layout/target/WindowGroupTarget.cpp
parent6b8b20100253c083227e611be20360f4d8e7794e (diff)
layout/scrolling: handle fullscreen manually (#14190)
Makes scroll handle fullscreen by itself, allowing for fs scrolls.
Diffstat (limited to 'src/layout/target/WindowGroupTarget.cpp')
-rw-r--r--src/layout/target/WindowGroupTarget.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/layout/target/WindowGroupTarget.cpp b/src/layout/target/WindowGroupTarget.cpp
index 8f9260e2..a738362a 100644
--- a/src/layout/target/WindowGroupTarget.cpp
+++ b/src/layout/target/WindowGroupTarget.cpp
@@ -68,6 +68,18 @@ void CWindowGroupTarget::setFullscreenMode(eFullscreenMode mode) {
m_group->current()->m_fullscreenState.internal = mode;
}
+bool CWindowGroupTarget::layoutManagedFullscreen() const {
+ return m_group->current()->m_target->layoutManagedFullscreen();
+}
+
+void CWindowGroupTarget::setLayoutManagedFullscreen(bool enabled) {
+ ITarget::setLayoutManagedFullscreen(enabled);
+
+ for (const auto& w : m_group->windows()) {
+ w->m_target->setLayoutManagedFullscreen(enabled);
+ }
+}
+
std::optional<Vector2D> CWindowGroupTarget::minSize() {
return m_group->current()->minSize();
}