No-op restore window position

This will most likely be reported as a bug in a short while.  I am
patching this out to wait to see how it is solved
wilder
Jacopo De Simoi 6 years ago
parent cfcca5216d
commit 646b87525f
  1. 3
      src/gui/kwindowconfig.cpp

@ -103,6 +103,9 @@ void KWindowConfig::saveWindowPosition(const QWindow *window, KConfigGroup &conf
void KWindowConfig::restoreWindowPosition(QWindow *window, const KConfigGroup &config) void KWindowConfig::restoreWindowPosition(QWindow *window, const KConfigGroup &config)
{ {
// no-op this. I don't want this to mess up my positioning logic
return;
// On Wayland, the compositor is solely responsible for window positioning, // On Wayland, the compositor is solely responsible for window positioning,
// So this needs to be a no-op // So this needs to be a no-op
if (!window || QGuiApplication::platformName() == QStringLiteral("wayland")) { if (!window || QGuiApplication::platformName() == QStringLiteral("wayland")) {

Loading…
Cancel
Save