summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index b0d7b58c..7c0cb741 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1748,3 +1748,19 @@ void CWindow::setContentType(NContentType::eContentType contentType) {
Debug::log(INFO, "ContentType for window {}", (int)contentType);
m_pWLSurface->resource()->contentType->value = contentType;
}
+
+void CWindow::deactivateGroupMembers() {
+ auto curr = getGroupHead();
+ while (curr) {
+ if (curr != m_pSelf.lock()) {
+ if (curr->m_bIsX11)
+ curr->m_pXWaylandSurface->activate(false);
+ else if (curr->m_pXDGSurface && curr->m_pXDGSurface->toplevel)
+ curr->m_pXDGSurface->toplevel->setActive(false);
+ }
+
+ curr = curr->m_sGroupData.pNextWindow.lock();
+ if (curr == getGroupHead())
+ break;
+ }
+}