Bug 500668 - Notification position offset by combined thickness of all panels on screen edge, not just the one with the Notifications widget on it
Summary: Notification position offset by combined thickness of all panels on screen ed...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 6.3.1
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-24 14:08 UTC by Жора Змейкин
Modified: 2025-03-14 04:59 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4
Sentry Crash Report:


Attachments
Demo (2.22 MB, video/mp4)
2025-02-24 14:08 UTC, Жора Змейкин
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Жора Змейкин 2025-02-24 14:08:56 UTC
Created attachment 178810 [details]
Demo

SUMMARY
I noticed a strange regression after upgrading to Plasma 6.3.1. I have two panels at the bottom (see video) set to auto-hide mode. Each of these panels increases the invisible gap for widgets and notifications, which shouldn't happen.

STEPS TO REPRODUCE
1. Enter Edit Mode
2. Remove all panels
3. Create two or three panels
4. Set all panels to "Visibility: Dodge Windows" and anchor them to the bottom position. You can align one panel to the left, another to the right, and the third in the center. The exact alignment doesn't matter, as long as all panels are placed at the bottom.
5. Try sending a notification or placing a widget near the panel on the desktop.

OBSERVED RESULT
Widgets and notifications have an excessively large gap.

EXPECTED RESULT
A normal gap, similar to when only one panel is present.

SOFTWARE/OS VERSIONS
Operating System: ALT Regular KDE and Fedora
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz
Memory: 15.5 ГиБ of RAM
Graphics Processor 1: Mesa Intel® HD Graphics 5500
Graphics Processor 2: llvmpipe
Manufacturer: Acer
Product Name: Aspire E5-573G
Comment 1 Nate Graham 2025-02-24 20:14:36 UTC
Can reproduce. I think it may  be related to Bug 477939.
Comment 2 Niccolò Venerandi 2025-02-24 20:30:40 UTC
Yep, I can confirm it's the exact same bug

*** This bug has been marked as a duplicate of bug 477939 ***
Comment 3 Nate Graham 2025-02-24 20:40:11 UTC
Cool. Same root cause, at least, since center-aligned panels aren't required to trigger this specific issue.
Comment 4 Жора Змейкин 2025-02-25 11:40:36 UTC
(In reply to Nate Graham from comment #1)
> Can reproduce. I think it may  be related to Bug 477939.

Are you sure this report is a duplicate? The other report mentions panel shifting, while my report is about notifications and desktop widgets shifting due to panels. I believe these are different issues, and mine only appeared in Plasma 6.3.
Comment 5 Edip 2025-03-08 20:28:46 UTC
(In reply to Niccolò Venerandi from comment #2)
> Yep, I can confirm it's the exact same bug
> 
> *** This bug has been marked as a duplicate of bug 477939 ***

it's not the same bug
this one introduced after commit https://invent.kde.org/plasma/plasma-workspace/-/commit/8e2401e6c613ae9b8b689ee97c2670be6d3db9c2 . The calculation in the commit assumes that all panels that are always visible (so assumes all the panels stack, which isnt the case when at least one of the panels is autohide)
Comment 6 Bug Janitor Service 2025-03-08 23:00:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5303
Comment 7 Bug Janitor Service 2025-03-09 14:32:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5304
Comment 8 Niccolò Venerandi 2025-03-11 16:03:16 UTC
Git commit 11523d82d672c8af8a7aeb5388d1000227503f64 by Niccolò Venerandi.
Committed on 11/03/2025 at 15:33.
Pushed by niccolove into branch 'master'.

Only make thickest visible panel reserve space for each edge

All other panels will ignore exclusive spaces on edges; this allows
to have multiple panels on the same screen edge, all touching the
screen edge instead of stacking. This was the status quo previous
to the introduction of layershells; it's not perfect (as it allows
for panels to intersect without a clear way to decide which one
should be shown above) but it's an improvement to the status quo.
Related: bug 477939

M  +6    -2    shell/panelview.cpp
M  +18   -24   shell/shellcorona.cpp
M  +1    -0    shell/shellcorona.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/11523d82d672c8af8a7aeb5388d1000227503f64