Commit 754b90c7 authored by David Edmundson's avatar David Edmundson

Create screens before screen edges

Summary:
Screens is used in screenEdges in a recent refactor

This didn't affect wayland as main_wayland creates screens earlier
itself. We can't move creation into main_x11 as X11's screens uses an
event filter which relies on workspace existing.

BUG: 419178

Test Plan: Restarted on X11

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D28233
parent 9b7ab4d1
......@@ -159,6 +159,7 @@ Workspace::Workspace(const QString &sessionKey)
RuleBook::create(this)->load();
kwinApp()->createScreens();
ScreenEdges::create(this);
// VirtualDesktopManager needs to be created prior to init shortcuts
......@@ -198,7 +199,6 @@ Workspace::Workspace(const QString &sessionKey)
void Workspace::init()
{
KSharedConfigPtr config = kwinApp()->config();
kwinApp()->createScreens();
Screens *screens = Screens::self();
// get screen support
connect(screens, SIGNAL(changed()), SLOT(desktopResized()));
......
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