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 689653 - Add a "Windows" option to Ctrl+Alt+Tab
Add a "Windows" option to Ctrl+Alt+Tab
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 689652
Blocks:
 
 
Reported: 2012-12-04 19:39 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-12-07 18:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
switcherPopup: Add a timestamp argument to _finish() (2.94 KB, patch)
2012-12-04 19:39 UTC, Jasper St. Pierre (not reading bugmail)
needs-work Details | Review
ctrlAltTab: Remove some dead code for a "window" parameter (1.81 KB, patch)
2012-12-04 19:39 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
ctrlAltTab: Only add to the focus manager if we have an StWidget. (1.25 KB, patch)
2012-12-04 19:39 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
ctrlAltTab: Add a "Windows" option to Ctrl+Alt+Tab (1.38 KB, patch)
2012-12-04 19:39 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
grabHelper: Use focus_default_window (1.51 KB, patch)
2012-12-04 19:39 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
switcherPopup: Add a timestamp argument to _finish() (3.42 KB, patch)
2012-12-05 23:03 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:03 UTC
When Rui "fixed" the Ctrl+Alt+Tab switcher to select the second item by
default, I knew I had to add this.
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:05 UTC
Created attachment 230690 [details] [review]
switcherPopup: Add a timestamp argument to _finish()

And use it elsewhere.
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:07 UTC
Created attachment 230691 [details] [review]
ctrlAltTab: Remove some dead code for a "window" parameter

This isn't set on any item, so we can safely remove it.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:10 UTC
Created attachment 230692 [details] [review]
ctrlAltTab: Only add to the focus manager if we have an StWidget.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:14 UTC
Created attachment 230693 [details] [review]
ctrlAltTab: Add a "Windows" option to Ctrl+Alt+Tab

This lets accessibility users easily access the desktop after focusing the panel.
Comment 5 Jasper St. Pierre (not reading bugmail) 2012-12-04 19:39:17 UTC
Created attachment 230694 [details] [review]
grabHelper: Use focus_default_window

This prevents us from having to track the previously focused window.
Comment 6 Rui Matos 2012-12-05 19:28:37 UTC
Review of attachment 230690 [details] [review]:

The _finish() call in SwitcherPopup._itemActivated() and _finish() itself should take the parameter as well.

::: js/ui/altTab.js
@@ +240,1 @@
         this.parent();

this should take the parameter for consistency
Comment 7 Rui Matos 2012-12-05 19:28:47 UTC
Review of attachment 230691 [details] [review]:

++
Comment 8 Rui Matos 2012-12-05 19:29:00 UTC
Review of attachment 230692 [details] [review]:

Ok with that extraneous line remove.

::: js/ui/ctrlAltTab.js
@@ +49,3 @@
         for (let i = 0; i < this._items.length; i++) {
             if (this._items[i].root == root) {
+                let item = this._items[i];

leftover?
Comment 9 Rui Matos 2012-12-05 19:29:13 UTC
Review of attachment 230693 [details] [review]:

Fine.
Comment 10 Rui Matos 2012-12-05 19:31:14 UTC
Review of attachment 230694 [details] [review]:

Ok
Comment 11 Jasper St. Pierre (not reading bugmail) 2012-12-05 23:03:57 UTC
Created attachment 230855 [details] [review]
switcherPopup: Add a timestamp argument to _finish()

And use it elsewhere.
Comment 12 Rui Matos 2012-12-06 09:45:06 UTC
Review of attachment 230855 [details] [review]:

Ok
Comment 13 Jasper St. Pierre (not reading bugmail) 2012-12-06 17:26:19 UTC
Attachment 230691 [details] pushed as 1f46a0d - ctrlAltTab: Remove some dead code for a "window" parameter
Attachment 230692 [details] pushed as 4728105 - ctrlAltTab: Only add to the focus manager if we have an StWidget.
Attachment 230693 [details] pushed as 349c642 - ctrlAltTab: Add a "Windows" option to Ctrl+Alt+Tab
Attachment 230694 [details] pushed as 4153fee - grabHelper: Use focus_default_window
Attachment 230855 [details] pushed as 7ff7ced - switcherPopup: Add a timestamp argument to _finish()
Comment 14 Rui Matos 2012-12-07 10:45:20 UTC
(In reply to comment #8)
> ::: js/ui/ctrlAltTab.js
> @@ +49,3 @@
>          for (let i = 0; i < this._items.length; i++) {
>              if (this._items[i].root == root) {
> +                let item = this._items[i];
> 
> leftover?

This got pushed.
Comment 15 Giovanni Campagna 2012-12-07 15:00:28 UTC
Worse, focus_default_window() got pushed, but the method is on MetaWorkspace, not MetaScreen
Comment 16 Jasper St. Pierre (not reading bugmail) 2012-12-07 18:04:08 UTC
(In reply to comment #15)
> Worse, focus_default_window() got pushed, but the method is on MetaWorkspace,
> not MetaScreen

See https://bugzilla.gnome.org/show_bug.cgi?id=689652, which is in deps. I forgot to push it.
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-12-07 18:09:00 UTC
(In reply to comment #14)
> (In reply to comment #8)
> > ::: js/ui/ctrlAltTab.js
> > @@ +49,3 @@
> >          for (let i = 0; i < this._items.length; i++) {
> >              if (this._items[i].root == root) {
> > +                let item = this._items[i];
> > 
> > leftover?
> 
> This got pushed.

Pushed a small cleanup.