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 651586 - Auto Move Windows: overview is not shown when closing last window
Auto Move Windows: overview is not shown when closing last window
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-31 22:03 UTC by Alessandro Crismani
Modified: 2011-07-09 14:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to open overview when closing the last window on a workspace (3.45 KB, patch)
2011-05-31 22:03 UTC, Alessandro Crismani
none Details | Review
[Patch] open overview when last window is closed (3.55 KB, patch)
2011-06-01 15:39 UTC, Alessandro Crismani
committed Details | Review
Patch to open overview when closing the last window on the last workspace (2.87 KB, patch)
2011-07-04 10:05 UTC, Alessandro Crismani
committed Details | Review

Description Alessandro Crismani 2011-05-31 22:03:07 UTC
Created attachment 188958 [details] [review]
Patch to open overview when closing the last window on a workspace

Using the auto move windows extension the overview is not shown when the last window on a workspace is closed. Instead, a workspace switch to the previous workspace is triggered.

A patch, that basicaly merges from gnome-shell master, is attached that seems to fix the issue for me
Comment 1 Alessandro Crismani 2011-06-01 15:39:31 UTC
Created attachment 189017 [details] [review]
[Patch] open overview when last window is closed

Open overview also when the window closed is on the last workspace
Comment 2 Giovanni Campagna 2011-06-02 14:30:14 UTC
Review of attachment 189017 [details] [review]:

I don't know that code very well, but you're the original author, so I'm confident you know what you do, and anyway bugs will be surely reported before 3.2.
Comment 3 Alessandro Crismani 2011-06-02 15:14:10 UTC
Well this mimic the standard Gnome Shell experience where the overview is shown upon closing the last window on a workspace. It has some shortcomings with the auto move window extension that I couldn't really address:

Take for example a situation where I have Evo on workspace two and I open Rhythmbox, that is scheduled for moving on workspace three. That means that Rhythmbox is opened on workspace one and moved to three. This is seen emptying workspace one, hence the overview is shown, which might be unwanted.

Summarizing:

Before patch
- I am on the last workspace and I close its last window -> workspace changes to the previous non empty one, no overview is shown

This patch
- I am on a workspace (no matter which one) and I close its last window -> Overview is shown, no workspace change occurs
- This has glitches due to the automoving (see example at the beginning)

After writing this I realized that there might be a different solution: change the code to open the overview only when using the last workspace. That means:

Possible different solution
- I am on workspace one (or any workspace but the last) and I close its last window -> nothing happens (no overview shown, no workspace change)
- I am on the last workspace and I close its last window -> overview is shown

Which one would you prefer?
Comment 4 Giovanni Campagna 2011-07-03 22:53:54 UTC
(In reply to comment #3)
> [...]
>
> Which one would you prefer?

Sorry for late answer. Anyway, among the three (old, patch, proposal), I prefer the last one, that is, use gnome-shell-core behavior when on the last workspace, and keep showing the workspace everywhere else. This way one can have a set of fixed, allocated workspaces (with apps assigned to them), and still add dynamic workspaces at the end, with functionality similar to core shell.
Comment 5 Alessandro Crismani 2011-07-04 10:05:38 UTC
Created attachment 191220 [details] [review]
Patch to open overview when closing the last window on the last workspace

I prefer to adhere to the core Gnome Shell as well and show the overview only when the last window of the last workspace is closed. This patch should achieve that behaviour.

This also avoids glitches introduced by the previous patch when automoving windows between empty spaces (see previous comments)
Comment 6 Giovanni Campagna 2011-07-09 14:00:35 UTC
Thanks a lot, Alessandro!

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.