After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787676 - Background/Settings right click menu stays open when screen is locked
Background/Settings right click menu stays open when screen is locked
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: lock-screen
3.24.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-09-14 14:08 UTC by Benjamin Berg
Modified: 2017-10-04 16:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
popupMenu: Close menus on session mode changes (1.38 KB, patch)
2017-09-14 15:22 UTC, Florian Müllner
committed Details | Review

Description Benjamin Berg 2017-09-14 14:08:33 UTC
Steps:
 1. Become root, execute "sleep 5; loginctl lock-sessions"
 2. Open the right click menu on the background ("Change Background", "System Settings", …)
 3. Wait until the sleep finishes and the session is locked

Result:
 * The right click menu stays open on top of the lock screen with no items

Expected result:
 * Menu disappears entirely.
Comment 1 Florian Müllner 2017-09-14 14:38:39 UTC
Same for context menu items for dash items. I wonder if there's any case where we don't want the menu to close, otherwise we could just hook into the existing session-updated handler in PopupMenuBase ...
Comment 2 Benjamin Berg 2017-09-14 15:03:12 UTC
I think context menus should always be closed. i.e. the only reason I can imagine for this to happen is that someone accidentally left a context menu open and left the computer without locking.
Comment 3 Florian Müllner 2017-09-14 15:22:54 UTC
Created attachment 359798 [details] [review]
popupMenu: Close menus on session mode changes

(In reply to Benjamin Berg from comment #2)
Not all menus are context menus though. But at a close look, we are already closing top bar menus on session mode changes, so I don't see a use case for *not* doing that for all menus generically (rather than fixing them one-by-one).

We are already closing top bar menus on session mode changes, but
as this behavior makes sense for any other menus as well - dash
context menus or the background menu for instance - just generalize
the behavior.
Comment 4 Benjamin Berg 2017-09-14 15:54:26 UTC
Ah, yes. Sounds good to me to generalize the code from the top bar menus to all menus.
Comment 5 Rui Matos 2017-10-04 13:50:32 UTC
Review of attachment 359798 [details] [review]:

makes sense
Comment 6 Florian Müllner 2017-10-04 16:28:49 UTC
Attachment 359798 [details] pushed as 7da5a76 - popupMenu: Close menus on session mode changes