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
This commit is contained in:
parent
3a47c73f34
commit
a4e6c5d678
1 changed files with 5 additions and 3 deletions
|
|
@ -1788,9 +1788,11 @@ void CWindow::deactivateGroupMembers() {
|
||||||
auto curr = getGroupHead();
|
auto curr = getGroupHead();
|
||||||
while (curr) {
|
while (curr) {
|
||||||
if (curr != m_pSelf.lock()) {
|
if (curr != m_pSelf.lock()) {
|
||||||
if (curr->m_bIsX11)
|
// we dont want to deactivate unfocused xwayland windows
|
||||||
curr->m_pXWaylandSurface->activate(false);
|
// because X is weird, keep the behavior for wayland windows
|
||||||
else if (curr->m_pXDGSurface && curr->m_pXDGSurface->toplevel)
|
// 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);
|
curr->m_pXDGSurface->toplevel->setActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue