pop-os / shell

Pop!_OS Shell
GNU General Public License v3.0
4.83k stars 261 forks source link

Hide newly-created windows that haven't been attached yet #129

Open Chrysostomus opened 4 years ago

Chrysostomus commented 4 years ago

This is mostly aesthetical issue. Currently, when a new window is spawned, it is spawned first and then placed into the window tree. It would be better if windows could be spawned directly into their place instead of the center of the screen.

I suspect that Mutter might simply not support this feature. If that is the case, one way to work around this issue would be to disable the window opening animations, which makes fast loading apps seem like they spawn directly in the right place. Another workaround could be to animate the window moving into the tree in a more robust manner, but that seems unnecessary amount of work for an aesthetical issue.

mmstick commented 4 years ago

We can only act when GNOME Shell sends us the signal that a window and its actor was created. It might be possible to hide the actor of the window in some way, but that may still be a matter of timing if GNOME Shell decides it wants to override that, or wait until after it's placed a window before it tells us that the window exists.