Bug 471416 - On secondary monitor, if user add a top horizontal panel , first monitor considers panel is in it too
Summary: On secondary monitor, if user add a top horizontal panel , first monitor con...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.27.6
Platform: openSUSE Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 01:29 UTC by Rafael Linux User
Modified: 2023-10-13 20:04 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.0
Sentry Crash Report:


Attachments
Screenshot just when changing to Wayland (598.47 KB, image/jpeg)
2023-06-25 01:29 UTC, Rafael Linux User
Details
Workaround resizing panel width (578.59 KB, image/jpeg)
2023-06-25 01:29 UTC, Rafael Linux User
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Linux User 2023-06-25 01:29:13 UTC
Created attachment 159885 [details]
Screenshot just when changing to Wayland

SUMMARY
I have two monitors. On the top edge of the secondary monitor, I always have a panel visible that occupies the full width of the second monitor (in X11). When I log into Wayland and change the zoom of the two monitors, Plasma thinks that the horizontal pane of the secondary monitor reaches the main monitor and therefore, when I maximise the windows on the main monitor, they don't cover the top because it considers that the pane is also on the main monitor.

The only way to avoid this is to reduce the width of the secondary monitor panel by a few pixels, so that it does not touch the edge of the secondary monitor.

Issue it's similar or related to https://bugs.kde.org/show_bug.cgi?id=349220


STEPS TO REPRODUCE
1. Open session in X11
2.  Add an horizontal panel in secondary monitor, from edge to edge
3. Open session in Wayland
4. Change (increase) zoom for both monitors

OBSERVED RESULT
When a window is maximized in first monitor, window doesn't cover top area , leaving a frame with equal height that panel of second monitor.

EXPECTED RESULT
Work like in X11

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230621
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.7-1-default (64-bit)
Graphics Platform: X11 and Wayland
Comment 1 Rafael Linux User 2023-06-25 01:29:48 UTC
Created attachment 159886 [details]
Workaround resizing panel width
Comment 2 Fushan Wen 2023-10-13 13:51:48 UTC
3840/1.75 = 2194.28571 which is not an integer, so the panel on the right screen leaks one pixel to the left screen. This can't be easily fixed in Plasma 5 as the API uses int not double to set struts.
Comment 3 Rafael Linux User 2023-10-13 20:04:56 UTC
(In reply to Fushan Wen from comment #2)
> 3840/1.75 = 2194.28571 which is not an integer, so the panel on the right
> screen leaks one pixel to the left screen. This can't be easily fixed in
> Plasma 5 as the API uses int not double to set struts.

Perhaps, in my ignorance, the result could be rounded down, but I don't know what other implications it might have.