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
This commit is contained in:
parent
9b7ab4d16a
commit
754b90c72f
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue