diff options
author | Nate Graham <nate@kde.org> | 2020-12-08 12:05:12 -0700 |
---|---|---|
committer | Nate Graham <nate@kde.org> | 2020-12-08 20:10:13 -0700 |
commit | 1be7af75767d579133e71f70f4629ac9c1e027fd (patch) | |
tree | a3e6905b40f7a8a24cf271b7baa0ba5d69497405 /src/gui | |
parent | e5fb03b6e915b176ae8804ae7317ff1977848487 (diff) | |
download | kconfig-1be7af75767d579133e71f70f4629ac9c1e027fd.tar.gz kconfig-1be7af75767d579133e71f70f4629ac9c1e027fd.tar.bz2 |
Correct format of window maximized string
All other resolutions are stored in the form of width x height, but a
silly transposition error had the maximized strong being height x width.
That's fixed now.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kwindowconfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kwindowconfig.cpp b/src/gui/kwindowconfig.cpp index 4181651f..ddbc89a5 100644 --- a/src/gui/kwindowconfig.cpp +++ b/src/gui/kwindowconfig.cpp @@ -47,7 +47,7 @@ void KWindowConfig::saveWindowSize(const QWindow *window, KConfigGroup &config, // on a per-screen-arrangement basis, since people often like to have // windows laid out differently depending on their screen arrangements const QString allScreens = allConnectedScreens(); - const QString screenMaximizedString(allScreens + QStringLiteral(" Window-Maximized %1x%2").arg(desk.height()).arg(desk.width())); + const QString screenMaximizedString(allScreens + QStringLiteral(" Window-Maximized %1x%2").arg(desk.width()).arg(desk.height())); // Save size only if window is not maximized if (!isMaximized) { const QSize defaultSize(window->property(s_initialSizePropertyName).toSize()); @@ -84,7 +84,7 @@ void KWindowConfig::restoreWindowSize(QWindow *window, const KConfigGroup &confi const QString allScreens = allConnectedScreens(); const int width = config.readEntry(allScreens + QStringLiteral(" Width %1").arg(desk.width()), fallbackWidth); const int height = config.readEntry(allScreens + QStringLiteral(" Height %1").arg(desk.height()), fallbackHeight); - const bool isMaximized = config.readEntry(allScreens + QStringLiteral(" Window-Maximized %1x%2").arg(desk.height()).arg(desk.width()), false); + const bool isMaximized = config.readEntry(allScreens + QStringLiteral(" Window-Maximized %1x%2").arg(desk.width()).arg(desk.height()), false); // Check default size const QSize defaultSize(window->property(s_initialSizePropertyName).toSize()); |