Bug 453628 - While a WindowHeap-based effect is open, touching the screen edge with an auto-hidden panel on it and closing the effect causes the panel to appear and stay open
Summary: While a WindowHeap-based effect is open, touching the screen edge with an aut...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-window-management (show other bugs)
Version: master
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 457283 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-10 14:13 UTC by Jack Hill
Modified: 2023-09-11 19:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video of the panel staying visible after the overview effect is closed (2.75 MB, video/x-matroska)
2022-07-29 17:19 UTC, Jack Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2022-05-10 14:13:08 UTC
SUMMARY

STEPS TO REPRODUCE
1. Set a panel to autohide
2. Activate overview
3. Hover mouse over panel so that the panel appears
4. Close overview
5. Hover mouse over panel
6. Move mouse away from panel

OBSERVED RESULT
After initially showing the panel, the panel does not hide.
The panel hides again after hovering over it the second time (not when overview is still active though).

EXPECTED RESULT
Panel should hide even when overview is active

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220507
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-05-10 16:02:55 UTC
Will be fixed with the fix for Bug 444274.

*** This bug has been marked as a duplicate of bug 444274 ***
Comment 2 Jack Hill 2022-06-20 17:56:20 UTC
Hmm this bug still occurs on 5.25. The panel doesn't appear whilst the overview effect is active, but appears after closing the effect and doesn't hide automatically.
Comment 3 Niklas Stephanblome 2022-07-29 06:02:19 UTC
Can reproduce on Plamsa 5.25.3, Archlinux. I think this is a bug with the autohide panels though, not so much with Overview. This is also present in Windowview (Presentwindows) and SimplePager, basically any effect that is fullscreen.
Comment 4 Nate Graham 2022-07-29 16:21:23 UTC
Are we discussing a new bug here? I can't reproduce the originally reported bug anymore; a visible auto-hide panel disappears (corrected, as expected) when Overview is activated.

What are people seeing now that's still broken?
Comment 5 Niklas Stephanblome 2022-07-29 16:40:00 UTC
The issue is the following (there are multiple ways to produce this bug). 

Option 1:
- You have a panel that is set to "auto-hide" (Edit Panel > More Options > Visibility)
- You move the mouse against the panel edge so it appears and leave your mouse there 
- You activate the Overview effect and after it is activated you move the mouse away from the edge
- You deactivate the Overview effect and here comes the ISSUE: the panel is visible even though your mouse is not hovering over it or touching the corresponding edge. It will stay that way until you hover over it and then move your mouse away again. 

Option 2:
- You have a panel that is set to "auto-hide" (Edit Panel > More Options > Visibility)
- You activate the Overview effect 
- You move your mouse against the corresponding edge (where the panel would usually be)
- You move your mouse away again
- You deactivate the Overview effect and here is the ISSUE: the panel is still visible and will be until manually hovered over again, same as in Option 1. 


This is especially annoying when in some cases, hovering over the panel won't help refresh its visibility state, leaving you with a permanently visible panel that covers part of any full screen application. A kwin restart won't help, a reboot is necessary to solve it. 
The root of the problem is the wrong assumption that a panels state doesn't change during the effect, thus when the effect ends, the panel's original state (before the effect) is restored, which is not desirable, the panel should be refreshed instead.
Comment 6 Jack Hill 2022-07-29 17:19:37 UTC
Created attachment 150984 [details]
Video of the panel staying visible after the overview effect is closed

In this video I:
1. Turn on overview
2. Move mouse to panel (notice the blue shadow that indicates the hot edge for the auto-hide panel)
3. Turn off overview effect (now the panel is visible and does not automatically hide again)
4. Move mouse to panel (this seems to reset the panel and makes it auto-hide)
Comment 7 Nate Graham 2022-07-29 19:29:45 UTC
Can reproduce that. Looks like that is the original bug and I just misunderstood it, sorry.

I guess we should block the panel's screen edge activation while Overview is open.
Comment 8 Nate Graham 2022-08-01 19:21:09 UTC
*** Bug 457283 has been marked as a duplicate of this bug. ***
Comment 9 bastimeyer123 2023-02-27 02:00:22 UTC
Friendly bump for bringing some attention to this issue.

The bug is especially noticable when toggling the desktop grid effect. If the desktop panel is set to auto-hide and the desktop-grid effect gets closed by selecting a desktop, the panel becomes fully visible during the animation and disappears again in just one frame when the grid toggle animation ends. It does that on all desktops, so on the grid, you can see this issue very clearly, which is distracting. See the attachment of my duplicate thread from August last year with slow animation times: Bug 457283