Commit da036098 authored by Martin Flöser's avatar Martin Flöser

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
parent 150a0357
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment