https://bugs.kde.org/show_bug.cgi?id=527385
Bug ID: 527385
Summary: Application Menu popup is cut off after the panel's
screen disappears and comes back
Classification: Plasma
Product: plasmashell
Version First 6.7.4
Reported In:
Platform: Debian testing
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Application Menu (Kicker) widget
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: 1.0
Created attachment 197313
--> https://bugs.kde.org/attachment.cgi?id=197313&action=edit
Use the containment's screen geometry for the popup size limit
I have two screens: DP-2 (2560x1440, primary, panel at the bottom) and HDMI-A-1
(1024x600) placed directly below it at 0,1440.
When I wake the PC from suspend, the main monitor comes up a bit later than the
system. Plasma moves the panel to the small screen for a moment and then back
to DP-2. After that, the first time I open the Application Menu it is too short
and I have to scroll the category list.
It can be reproduced with:
kscreen-doctor output.DP-2.disable; sleep 5; kscreen-doctor output.DP-2.enable
and then opening the Application Menu on DP-2.
MenuRepresentation.qml limits the height to Math.round(Screen.height * 0.9).
When the popup opens, Screen still points to HDMI-A-1 even though the panel is
already back on DP-2, so the limit is 540 px. Screen only updates about 20 ms
after the popup is shown. The saved popupHeight in
plasma-org.kde.plasma.desktop-appletsrc was 541.
Log from a local build with console.warn added (Screen = attached Screen, panel
= Plasmoid.containment.screenGeometry):
23:43:04.950 Screen changed | Screen: HDMI-A-1 1024x600 | panel: 0,1440
1024x600 | needed: 639 | cap from Screen: 540
23:43:22.650 opened | Screen: HDMI-A-1 1024x600 | panel: 0,0 2560x1440
| needed: 639 | cap from Screen: 540
23:43:22.672 Screen changed | Screen: DP-2 2560x1440 | panel: 0,0 2560x1440
| needed: 639 | cap from Screen: 1296
The attached patch uses Plasmoid.containment.screenGeometry instead (the task
manager does the same) and falls back to Screen when the geometry is not known
yet. With it the menu opens at full height in the same scenario. The code in
master is the same.
Plasma 6.7.4, Qt 6.11.2, Wayland, Debian testing.
--
You are receiving this mail because:
You are watching all bug changes.