Keep lostLeader code under removeX11Client
The groups concept only applies to X11 clients
This commit is contained in:
parent
ae01ed219c
commit
e4ed4e5a13
1 changed files with 3 additions and 4 deletions
|
@ -759,6 +759,9 @@ void Workspace::removeX11Client(X11Client *c)
|
||||||
Q_ASSERT(m_x11Clients.contains(c));
|
Q_ASSERT(m_x11Clients.contains(c));
|
||||||
// TODO: if marked client is removed, notify the marked list
|
// TODO: if marked client is removed, notify the marked list
|
||||||
m_x11Clients.removeAll(c);
|
m_x11Clients.removeAll(c);
|
||||||
|
Group* group = findGroup(c->window());
|
||||||
|
if (group != nullptr)
|
||||||
|
group->lostLeader();
|
||||||
removeAbstractClient(c);
|
removeAbstractClient(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -855,10 +858,6 @@ void Workspace::removeAbstractClient(AbstractClient *client)
|
||||||
cancelDelayFocus();
|
cancelDelayFocus();
|
||||||
}
|
}
|
||||||
attention_chain.removeAll(client);
|
attention_chain.removeAll(client);
|
||||||
Group* group = findGroup(client->window());
|
|
||||||
if (group != nullptr)
|
|
||||||
group->lostLeader();
|
|
||||||
|
|
||||||
should_get_focus.removeAll(client);
|
should_get_focus.removeAll(client);
|
||||||
if (client == active_client) {
|
if (client == active_client) {
|
||||||
active_client = nullptr;
|
active_client = nullptr;
|
||||||
|
|
Loading…
Reference in a new issue