Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Guillaume_G:WSL
mingw64-kconfig
0001-Fix-window-sizing-and-positioning-on-Windo...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-window-sizing-and-positioning-on-Windows.patch of Package mingw64-kconfig
From e5fb03b6e915b176ae8804ae7317ff1977848487 Mon Sep 17 00:00:00 2001 From: Nate Graham <nate@kde.org> Date: Mon, 7 Dec 2020 12:26:11 -0700 Subject: [PATCH] Fix window sizing and positioning on Windows The feature to make windows remember their sizes and positions across screen layouts relied on calling QScreen::name() to identify screens. Unfortunately this function returns garbage on Windows; see https://bugreports.qt.io/browse/QTBUG-74317 So on Windows, let's identify displays by serial number as a workaround. BUG: 429943 FIXED-IN: 5.78 --- src/gui/kwindowconfig.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui/kwindowconfig.cpp b/src/gui/kwindowconfig.cpp index bb541b8e..4181651f 100644 --- a/src/gui/kwindowconfig.cpp +++ b/src/gui/kwindowconfig.cpp @@ -21,7 +21,13 @@ static QString allConnectedScreens() const auto screens = QGuiApplication::screens(); names.reserve(screens.length()); for (auto screen : screens) { +#ifdef Q_OS_WIN + QString name = screen->name(); + name.remove(QRegExp(QStringLiteral("[^\\w]+"))); + names << name; +#else names << screen->name(); +#endif } return names.join(QLatin1Char(' ')); } -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor