Bug 434322

Summary: KDE Plasma Wayland - Monitor DPI Below 100% Effects Window Title Bar Display
Product: [Plasma] Breeze Reporter: Ben <globalunity>
Component: window decorationAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: globalunity, kwin-bugs-null, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: 5.21.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of display at 75 Percent Scale
Kate Editor - Minimise & Maximise UI Buttons NOT Visible on screen with Scale less than 100%

Description Ben 2021-03-12 15:27:48 UTC
KDE Plasma Wayland - Monitor DPI Below 100% Effects Window Title Bar Display:




DESC:

Window Titlebar UI buttons stop correctly displaying
on the top right-hand side corners with DPI settings below 100%

NOTE: Issue only shows up on screen/monitor who's DPI setting falls below 100%
      DPI settings at 100% and higher do not cause any issues

Graphics Affected:
Window Titlebar Minimise, Maximise, Close - UI Button's


DE's Bug Appears In:

Plasma X11: N/A
Plama (Wayland) Xwayland: YES
Plasma (Full Wayland): YES



REPRODUCIBLE: YES


1. Settings > Display
2. Choose a/the screen/monitor to have a DPI lower then 100%
3. Set a value lower than 100% for the DPI
4. Press Apply
5. Open an app up, example KATE



EXPECTED BEHAVIOUR:

To see all the windows and all their respective related UI stuff change in a scale proportional to the stated DPI


WHAT DOES HAPPEN:

Any/All windows open will have the above stated UI buttons hidden from view in their titlebar


NOTE: The Window Title bar options will become visible if the mouse pointer is moved over them

NOTE 2: If you have at least 2 monitors, and at least one of them has either not had its DPI changed from the default OR
        has a DPI Greater than 100%, then moving the window that has the hidden UI elements over to the screen/monitor
        that has a DPI or 100% or greater DPI, one will immediate see the windows titlebar elements again
        Also vice-versa, moving the same window back to the/a screen/monitor who's DPI is set to below 100%, once again
        the windows titlebar UI elements will again become invisible.
        
NOTE: Changing any of the below also had no effect, with the exception that changing 'Window Decorations' from Breeze to
      Plastik meant that NO UI elements at all were displayed in a windows titlebar (the ones on the left-hand side) until
      a re-boot was performed.
      

Global Theme: Breeze Twilight
Application Style: Breeze
Plasma Style: Oxygen
Window Decorations: Breeze


*POSSIBLY RELATED BUGS*

https://bugs.kde.org/show_bug.cgi?id=430487
https://bugs.kde.org/show_bug.cgi?id=346937
https://bugs.kde.org/show_bug.cgi?id=397215
https://bugs.kde.org/show_bug.cgi?id=379054
https://bugs.kde.org/show_bug.cgi?id=317252
https://bugs.kde.org/show_bug.cgi?id=355866
https://bugs.kde.org/show_bug.cgi?id=410021



DATE TESTED: Friday the 12th of March, 2021 - NZDT
TIME: 7.30 ~ 9.00 am




Operating System: openSUSE Tumbleweed 20210307
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.2-1-default
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD PITCAIRN
Comment 1 Nate Graham 2021-03-17 22:55:43 UTC
How are you setting the scale below 100% in the Display Configuration KCM? The minimum value is 100%.

Also can you please attach a screenshot that shows the problem?
Comment 2 Ben 2021-03-20 14:25:47 UTC
Created attachment 136888 [details]
Screenshot of display at 75 Percent Scale
Comment 3 Ben 2021-03-20 14:32:08 UTC
Created attachment 136889 [details]
Kate Editor - Minimise & Maximise UI Buttons NOT Visible on screen with Scale less than 100%
Comment 4 Ben 2021-03-20 14:38:16 UTC
(In reply to Nate Graham from comment #1)
> How are you setting the scale below 100% in the Display Configuration KCM?
> The minimum value is 100%.
> 
> Also can you please attach a screenshot that shows the problem?


Nate, Why do you think i would make a fake bug report ?
Do you really think I have some reason to lie to bugs.kde.org ?
Why would i presume the idea of the display scale going below 100% and also then presume there must be a bug for UI elements in the title bar of any window try to display on such a screen ?

I can assure you i make *thorough* tests before submitting any bugs to bugs.kde.org as well as first checking to see if there are already any bugs already submitted with the same of similar aspects
Comment 5 Ben 2021-03-20 14:47:54 UTC
As a secondary note - although this really should be sibmitted as a separate but
*related* bug (unless it already has been)

Settings the/a Screen Scale to below 100% also gives at least an X coordinate offset issue - in other words a mis-alignment of UI Elements like things one is meant to be able to click on, like say a browser TAB, a menu item etc etc
with respect to the actual mouse pointer x/y position

Example Setup:

32" Widescreen Monitor
Monitor set to 75% Scale via KDE System Settings > Display Configuration

In my seamonkey browser for example, I had serious issue's with the correct TAB being selected via the
left mouse button
Upon Pressing the left mousse button while the moues pointer was on top of a browser TAB
a tab 4 tabs down instead got selected.

This ONLY happened when the screen/monitor seamonkey was on had it scale set to below 100%
Comment 6 Ben 2021-03-20 14:50:51 UTC
Note 1:

This big report was originally made when i was using a SONY 40" monitor
I have subsequently switched over to a SONY 32" monitor
the 40" monitor was just far far too big me me as a normal desktop monitor
and i also had decided to change the monitors display to a smaller and more prefered scale size when i first saw this bug.


NOTE 2: My original references to DPI may have been somewhat mis-leading
        as i did infact mean "Scale"
Comment 7 Nate Graham 2021-03-21 03:55:44 UTC
Oh hey, I never noticed that it was possible to set the scale factor as low as 50% on Wayland, my mistake. I was not accusing you of anything; no need to feel defensive. :)

Unfortunately with a 4k screen, I cannot really test, as going from 200% scale to 50% scale will make the system unusable.
Comment 8 Ben 2021-03-21 11:28:17 UTC
Thank you for recognising KDE's scale ability :)
Comment 9 Vlad Zahorodnii 2021-03-26 08:02:47 UTC

*** This bug has been marked as a duplicate of bug 432766 ***