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 697157 - classic mode: 'automatic' grouping mode
classic mode: 'automatic' grouping mode
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
classic
Depends on:
Blocks:
 
 
Reported: 2013-04-03 02:30 UTC by Matthias Clasen
Modified: 2013-04-16 19:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window-list: Add support for AUTO grouping (5.21 KB, patch)
2013-04-04 18:33 UTC, Florian Müllner
needs-work Details | Review
window-list: Add support for AUTO grouping (5.30 KB, patch)
2013-04-16 16:07 UTC, Florian Müllner
committed Details | Review

Description Matthias Clasen 2013-04-03 02:30:16 UTC
In addition to 'always' and 'never', there should be an automatic mode, that only groups windows if space gets used up.
Comment 1 Florian Müllner 2013-04-04 18:33:51 UTC
Created attachment 240648 [details] [review]
window-list: Add support for AUTO grouping

In addition to "always" and "never", gnome-panel supported an "auto"
grouping mode, which only started to group items when running out of
available space. It makes sense for us to support the same option in
the window-list extension, so implement it.
Comment 2 Florian Müllner 2013-04-04 18:34:39 UTC
I wonder if we should default to 'auto' (though the current default of 'never' matches gnome-panel) ...
Comment 3 Rui Matos 2013-04-06 22:17:56 UTC
Review of attachment 240648 [details] [review]:

::: extensions/window-list/extension.js
@@ +445,3 @@
+                if (width < natWidth) {
+                    this._grouped = true;
+                    this._populateWindowList();

Unfortunately, this causes an allocation cycle. Defer it to and idle?
Comment 4 Matthias Clasen 2013-04-10 10:28:06 UTC
Review of attachment 240648 [details] [review]:

according to rui's review
Comment 5 Florian Müllner 2013-04-16 16:07:10 UTC
Created attachment 241661 [details] [review]
window-list: Add support for AUTO grouping

Just out of curiousity - were the "allocation cycle" warnings removed at some point? I didn't get any warnings with the previous patch either, but deferring to a MetaLater handler doesn't hurt, so ...
Comment 6 Rui Matos 2013-04-16 18:18:33 UTC
Review of attachment 241661 [details] [review]:

(In reply to comment #5)
> Just out of curiousity - were the "allocation cycle" warnings removed at some
> point? I didn't get any warnings with the previous patch either, but deferring
> to a MetaLater handler doesn't hurt, so ...

I see the warnings when going ungrouped → grouped.

Deferring makes us show one wrong frame though but still seems better than the warnings.
Comment 7 Florian Müllner 2013-04-16 18:22:07 UTC
(In reply to comment #6)
> I see the warnings when going ungrouped → grouped.

Odd, no warnings in that case here (or the opposite grouped → ungrouped case) ...
Comment 8 Florian Müllner 2013-04-16 19:32:01 UTC
Attachment 241661 [details] pushed as 360ba43 - window-list: Add support for AUTO grouping

In any case, I don't think the one-frame-delay is that bad, so pushing for 3.8.1 ...