https://bugs.kde.org/show_bug.cgi?id=433041

            Bug ID: 433041
           Summary: Panel extends past monitor with QT scaling
           Product: plasmashell
           Version: 5.20.5
          Platform: Manjaro
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Panel
          Assignee: plasma-b...@kde.org
          Reporter: nilaypat...@gmail.com
  Target Milestone: 1.0

SUMMARY
First off, apologies if the report is confusing. I'll try to provide as much
information as I can. It's a niche problem and I'm not sure exactly what's
causing it.

In my mixed-dpi (multi-monitor) setup, one of the panels extends past its
monitor...kinda. The panel itself is not visible on the other monitor, but
maximized windows on the other monitor are cut-off at the part where the panel
would be if it was visible. 


STEPS TO REPRODUCE
1. Set up 3 monitors (right one vertical) using the script at the bottom of
this report. 
2. Adjust font scaling to be 192dpi instead of 96 to make things legible. This
is unrelated to the bug, but is necessary unless you have eagle vision.
2. Set the following environment variables
export QT_AUTO_SCREEN_SCALE_FACTOR=2
export QT_SCALE_FACTOR=1
export PLASMA_USE_QT_SCALING=1 # this also works with 0 instead of 1. in fact,
there doesn't seem to be a difference at all between 0 and 1.
3. Add a panel to the middle monitor at the bottom
4. Try to open a window on the vertical (right) monitor. 

OBSERVED RESULT
See attached file. The window on the right side is "maximized" (note: i forgot
to disable the Grid Tiling extension before taking this image, but even without
the extension, the same effect happens)


EXPECTED RESULT

The maximized window should properly take up the whole page

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.10.15-1-MANJARO
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
I have a mixed-dpi setup - laptop monitor is hi-dpi and the two external ones
are low-dpi. I use an xrandr command on-startup to set the per-monitor scaling
(2x for low-dpi, 1x for high). The laptop monitor is 3000x2000 and hi-dpi and
both external monitors are 1920x1080 and low-dpi. And of course, after the
scaling, the de-facto resolutions are 3840x2160 for the two external monitors
(the vertical one is 2160x3840 since it's rotated). Here is the command I use:

xrandr --output eDP-1-1 --scale 1x1 --pos 3840x0 --mode 3000x2000 --rate 60.00
--rotate normal --primary \
       --output DP-4 --scale 2x2 --pos 0x0 --mode 1920x1080 --rate 143.98
--rotate normal \
       --output DP-0 --scale 2x2 --pos 6840x0 --mode 1920x1080 --rate 143.98
--rotate left


There are a few things which make me think it's the panel.
1. The cutoff point is exactly at the panel height
2. If you move the panel to the top of the screen, the gap on the vertical
monitor moves to the very top (not as large; just as if an invisibble panel was
on that monitor)
3. If you set the panel to autohide, everything works properly (the bug happens
on "always be visible")
4. On the main monitor, parts of maximized/large windows get hidden under the
panel, making it impossible to click on those parts. 


In a similar vein, if you don't use the export commands above, everything works
almost perfectly except some QT apps. Also, the icons in the right click menus
in plasma are noticeably smaller than when they're all set. That is actually
what first made me set the QT scale values and discover this bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to