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 699251 - classic mode: consider right-click actions on the window list items
classic mode: consider right-click actions on the window list items
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
classic
: 699883 701862 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-29 18:33 UTC by Matthias Clasen
Modified: 2014-04-15 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window-list: Add context menu (12.70 KB, patch)
2013-05-27 22:17 UTC, Florian Müllner
committed Details | Review
window-list: Allow to pop up context menu from keyboard (2.16 KB, patch)
2013-08-06 10:09 UTC, Florian Müllner
committed Details | Review
window-list: Fix app button context menu glitch (1.73 KB, patch)
2013-08-18 00:55 UTC, Damián Nohales
rejected Details | Review
window-list: Added animations to context menu and properly destroy appContextMenu (2.32 KB, patch)
2013-08-18 01:20 UTC, Damián Nohales
none Details | Review

Description Matthias Clasen 2013-04-29 18:33:37 UTC
It has been pointed out to me that both GNOME 2 and Win7 allow to close a window from the window list, with a context menu (or, with grouping, close all grouped windows in one go). We should consider adding something like that back ?
Comment 1 Florian Müllner 2013-04-29 18:36:29 UTC
(In reply to comment #0)
> (or, with grouping, close all grouped windows in one go)

gnome-panel did nested menus in that case *shudder*
Comment 2 Vladimir Benes 2013-04-29 20:00:20 UTC
What I would like to see there is a possibility to close all grouped windows when right clicking the group (Something like "close all windows"). This menu can be quite simple. Saying "cascade" and "minimize all" maybe as well. There should be a possibility to close just one window from the group via right click as well. This can go with classic menu that would be available for single non grouped panel items.
Comment 3 Florian Müllner 2013-05-07 22:13:15 UTC
*** Bug 699883 has been marked as a duplicate of this bug. ***
Comment 4 Simon Gerhards 2013-05-22 18:04:32 UTC
The right click menu of the window list could also show the same menu as the right click menu from the title bar of a window.

For grouped windows the presented options could either be applied to all of the windows or it would need to have a mechanism to distinguish the windows. I suppose the latter would probably need some inelegant ui like nested menus.
Comment 5 Florian Müllner 2013-05-27 22:17:33 UTC
Created attachment 245415 [details] [review]
window-list: Add context menu

gnome-panel's window list had context menus on buttons, that gave
easy access to common operations like close, minimize and maximize.
Add something similar to the window-list.
Comment 6 drago01 2013-05-30 09:36:58 UTC
Review of attachment 245415 [details] [review]:

Looks good.
Comment 7 Rui Matos 2013-05-30 09:44:35 UTC
Review of attachment 245415 [details] [review]:

The menu handling is quite broken in my testing here.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-05-30 11:21:51 UTC
That's normal for menus.
Comment 9 Rui Matos 2013-05-30 12:38:39 UTC
Review of attachment 245415 [details] [review]:

Yeah, I'm noticing that even the menus that we already had for the application mode (window grouping) buttons have the same problems so let's land this since the code in this patch does look fine.
Comment 10 Florian Müllner 2013-06-08 16:35:54 UTC
*** Bug 701862 has been marked as a duplicate of this bug. ***
Comment 11 Matthias Clasen 2013-07-01 21:31:44 UTC
Would be nice to land this, still. (and ideally backport to f19)
Comment 12 Matthias Clasen 2013-07-18 18:23:27 UTC
any update ?
Comment 13 Florian Müllner 2013-08-06 10:09:51 UTC
Created attachment 250953 [details] [review]
window-list: Allow to pop up context menu from keyboard

... so this is why I didn't push the patch before. The patch is meant to be squashed with the other one, just separate for now for ease of review.
Comment 14 Matthias Clasen 2013-08-17 15:36:56 UTC
florian, were you still going to land this ?
Comment 15 Florian Müllner 2013-08-17 15:41:35 UTC
Yes, but as mentioned in comment #13, I'd like to squash the 2nd patch, which is still waiting for review ...
Comment 16 Damián Nohales 2013-08-18 00:55:11 UTC
Created attachment 252090 [details] [review]
window-list: Fix app button context menu glitch

I've detected the problem with context menu in grouped mode. On _windowsChanged callback you refresh the window/app button title and select a proper menu, this._windowContextMenu or this._appContextMenu, but when you select this._windowContextMenu for the proper menu, you leave both menu objects in the _contextMenuManager.

This patch must be applied after the above two.
Comment 17 Damián Nohales 2013-08-18 01:20:48 UTC
Created attachment 252091 [details] [review]
window-list: Added animations to context menu and properly destroy appContextMenu

Also please let me add animations to the context menu as the others GNOME Shell menus :D

I also realized that _appContextMenu is not destroyed on the _onDestroy callback, is that correct?
Comment 18 Damián Nohales 2013-08-18 01:49:07 UTC
Review of attachment 252090 [details] [review]:

Oh crap, "this._contextMenuManager.removeMenu(this._appContextMenu);" and "this._contextMenuManager.addMenu(this._appContextMenu);" (lines 452 and 462) must be outside the inner if. I think it's time to go to sleep :(
Comment 19 Matthias Clasen 2013-08-19 01:52:17 UTC
Review of attachment 250953 [details] [review]:

Looks fine to me, and seems very similar to what is done in other places for popup menus in the shell.
Comment 20 Matthias Clasen 2013-08-19 01:52:59 UTC
there you go, instant review !
Comment 21 Florian Müllner 2013-08-19 08:22:21 UTC
Attachment 245415 [details] pushed as f1f16f2 - window-list: Add context menu