Nullptr check for rootInfo when setting active client
Summary: Preparation for X free KWin. Code is called for both X11 and Wayland windows. So make it not crash if we would not have an X server. Reviewers: #kwin, #plasma Subscribers: plasma-devel, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D6908
This commit is contained in:
parent
150a0357b4
commit
da036098cf
1 changed files with 3 additions and 1 deletions
|
@ -270,7 +270,9 @@ void Workspace::setActiveClient(AbstractClient* c)
|
|||
|
||||
updateStackingOrder(); // e.g. fullscreens have different layer when active/not-active
|
||||
|
||||
rootInfo()->setActiveWindow(active_client ? active_client->window() : 0);
|
||||
if (rootInfo()) {
|
||||
rootInfo()->setActiveWindow(active_client ? active_client->window() : 0);
|
||||
}
|
||||
|
||||
emit clientActivated(active_client);
|
||||
--set_active_client_recursion;
|
||||
|
|
Loading…
Reference in a new issue