nextcloud-desktop/nextcloud-fix-HiDPI-window-size.patch
Atri Bhattacharya af5c9585d7 - Update to version 3.13.4:
* Fix release kind detection (gh#nextcloud/desktop#7034)
  * docs: conf file option moveToTrash is no longer Linux specific 
    (gh#nextcloud/desktop#7047)
  * only add Encrypt context menu entry for top folder in settings 
    dialog (gh#nextcloud/desktop#7063)
  * add missing exception handling (gh#nextcloud/desktop#7081)
  * do not ignore paths containing 2 "#" characters 
    (gh#nextcloud/desktop#7087)
  * Narrow down ReadWrite folder permission to owner 
    (gh#nextcloud/desktop#7092)
  * Bugfix/delete read only remnants folders (
    gh#nextcloud/desktop#7107)
  * Bugfix/fix one rename issue (gh#nextcloud/desktop#7111)

OBS-URL: https://build.opensuse.org/package/show/network/nextcloud-desktop?expand=0&rev=147
2024-09-15 00:26:17 +00:00

28 lines
1.1 KiB
Diff

Index: desktop-3.9.0/src/gui/main.cpp
===================================================================
--- desktop-3.9.0.orig/src/gui/main.cpp
+++ desktop-3.9.0/src/gui/main.cpp
@@ -65,6 +65,8 @@ int main(int argc, char **argv)
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
+ QApplication::setHighDpiScaleFactorRoundingPolicy(
+ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#ifdef Q_OS_MAC
Mac::CocoaInitializer cocoaInit; // RIIA
#endif
Index: desktop-3.9.0/src/crashreporter/main.cpp
===================================================================
--- desktop-3.9.0.orig/src/crashreporter/main.cpp
+++ desktop-3.9.0/src/crashreporter/main.cpp
@@ -25,6 +25,8 @@
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+ QApplication::setHighDpiScaleFactorRoundingPolicy(
+ Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
#ifdef Q_OS_WIN
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif // !Q_OS_WIN