Bug 489460

Summary: Drag&drop of widget to panel closes Panel Configuration mode if left-edge panel is set to custom height
Product: [Plasma] plasmashell Reporter: cwo <cwo.kde>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate, niccolo.venerandi
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cwo 2024-06-29 19:57:26 UTC
SUMMARY

It is possible to drag&drop widgets from the desktop to the panel while in Panel Configuration mode without closing that mode. However, if the user tries to do this to a left-edge panel set to custom height, Panel Configuration mode closes as the pointer enters the panel resizing bar. If the user tries to drag to a bottom custom-width panel, the mode does not close, but abandoning the drag&drop operation (moving the pointer back to the original position without dropping the widget on the panel) will close it,


STEPS TO REPRODUCE

New user profile

1. Right-click desktop, Enter Edit Mode, Add widget, Place Analog Clock on the desktop
2. Right-click panel, Show Panel Configuration, move to left screen edge, set height to custom 
3. Drag&Drop Analog Clock to the panel

(Similarly for the bottom panel variant)

OBSERVED RESULT

Panel Configuration mode closes.

EXPECTED RESULT

Panel Configuration mode stays open, as it does if panel Height is set to "Fill height". 

SOFTWARE/OS VERSIONS

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-41-generic (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-07-02 21:00:59 UTC
Can reproduce.
Comment 2 Bug Janitor Service 2024-07-14 13:55:13 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/4520
Comment 3 Niccolò Venerandi 2024-08-28 07:28:41 UTC
Git commit 7e9c6cc5aa1b69fbcf9c16778e572170937259e4 by Niccolò Venerandi, on behalf of Niccolo Venerandi.
Committed on 28/08/2024 at 07:28.
Pushed by niccolove into branch 'master'.

Never hide panel configuration when handling desktop widgets

M  +7    -0    shell/panelconfigview.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/7e9c6cc5aa1b69fbcf9c16778e572170937259e4