summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authornyx <nnyyxxxx@protonmail.com>2025-04-01 18:51:37 -0400
committerGitHub <noreply@github.com>2025-04-02 00:51:37 +0200
commita4e6c5d678e8dd27ab07a6d6eb4ba2834fab81d1 (patch)
tree36496a690862d22065ca02822d53cfdef2df793a /src/desktop/Window.cpp
parent3a47c73f34d358c55e97927b0682dbdda19e24c1 (diff)
window: don't deactivate unfocused xwayland windows in groups (#9781)
* window: don't deactivate unfocused xwayland windows in groups we dont want to deactivate unfocused xwayland windows because X is weird, keep the behavior for wayland windows
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index c26e0d9f..41af094b 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -1788,9 +1788,11 @@ 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)
+ // we dont want to deactivate unfocused xwayland windows
+ // because X is weird, keep the behavior for wayland windows
+ // also its not really needed for xwayland windows
+ // ref: #9760 #9294
+ if (!curr->m_bIsX11 && curr->m_pXDGSurface && curr->m_pXDGSurface->toplevel)
curr->m_pXDGSurface->toplevel->setActive(false);
}