https://bugs.kde.org/show_bug.cgi?id=469830
Bug ID: 469830 Summary: High-DPI Fractional Scaling nonfunctional on KDE Plasma + Wayland Classification: Applications Product: krita Version: git master (please specify the git hash!) Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Usability Assignee: krita-bugs-n...@kde.org Reporter: swiftlo...@gmail.com Target Milestone: --- SUMMARY *** On both 5.15 and the latest master (tested with aab9b91) the "fractional scaling" option is greyed out ([image](https://krita-artists.org/uploads/default/original/3X/9/4/943835869578160c9976a19f37da420dd628b2ce.png)). This causes Kritas UI to appear unusable on KDE Plasma Wayland with fractional scaling (I use 235% scaling on a 14" 4K screen) ([image](https://krita-artists.org/uploads/default/original/3X/6/4/64d66ec8a51f08095f6717e24b85e8a00aa1714e.png)). I did some digging through the source code to figure out what's going on. On 5.15, the fractional scaling option is not present at all, but a [recent change](https://invent.kde.org/graphics/krita/-/commit/c59a6ce21e6a60fd351386b024c90c80b52146f6) makes it so that the option is now present, but greyed out. This is a welcome change, making it more clear that the option is not available, but doesn't fix the problem. The option is gated behind ``#ifdef``s with [this](https://invent.kde.org/graphics/krita/-/blob/master/CMakeLists.txt#L472) CMake test. One can see that the option is gated behind this in the commit I show above, and the actual enabling of fractional scaling is [similarly gated](https://invent.kde.org/graphics/krita/-/blob/c59a6ce21e6a60fd351386b024c90c80b52146f6/krita/main.cc#L255) in main.cc. CMake reports that this test passes on my local build: ``` -- Performing Test HAVE_HIGH_DPI_SCALE_FACTOR_ROUNDING_POLICY -- Performing Test HAVE_HIGH_DPI_SCALE_FACTOR_ROUNDING_POLICY - Success ``` However, the option still is greyed out and does not function. After digging that far into this, the folks on IRC suggested I file a bug report here, to which I am obliging. I have some extra time this week, so I'm happy to help wherever possible. *** STEPS TO REPRODUCE 1. Boot Krita on KDE Plasma Wayland with fractional scaling enabled. 2. Attempt to enable fractional scaling in Settings -> Configure Krita -> Window OBSERVED RESULT Fractional scaling should be an available option, and should work as intended. EXPECTED RESULT Fractional scaling option is greyed out and cannot be enabled SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION Graphics Platform: Wayland -- You are receiving this mail because: You are watching all bug changes.