shell: Make sure the primary output is initialised on X11 as well

BUG: 445589
wilder-5.24
Aleix Pol 4 years ago
parent fa5ac3fe34
commit 468a59cbb3
  1. 4
      shell/primaryoutputwatcher.cpp

@ -52,6 +52,10 @@ PrimaryOutputWatcher::PrimaryOutputWatcher(QObject *parent)
qGuiApp->installNativeEventFilter(this);
const xcb_query_extension_reply_t *reply = xcb_get_extension_data(QX11Info::connection(), &xcb_randr_id);
m_xrandrExtensionOffset = reply->first_event;
setPrimaryOutputName(qGuiApp->primaryScreen()->name());
connect(qGuiApp, &QGuiApplication::primaryScreenChanged, this, [this](QScreen *newPrimary) {
setPrimaryOutputName(newPrimary->name());
});
}
#endif
if (KWindowSystem::isPlatformWayland()) {

Loading…
Cancel
Save