tilingWindowManager: Semi-maximize windows when possible#239
tilingWindowManager: Semi-maximize windows when possible#2393v1n0 wants to merge 1 commit intoubuntu:mainfrom
Conversation
When a window is meant to use the whole workarea height or the whole width we can assume that the user wants to semi-maximize the window, so let's communicate this to mutter so that it will apply to the window the proper style, avoiding the window to have shadows or wrongly decorated edges
|
Looks good generally but there are 2 (minor) issues: This currently breaks the I've added that setting a long time ago as a workaround for Wayland because some windows didn't restore their size properly at the beginning of a grab. Not sure, if (m)any people even used the setting in the first place, since it's hidden by default. I also don't know, if the original issue still exists. From quick testing I can't seem to find a window that doesn't restore their size on a grab start... so the setting may not even be needed anymore. And finally, I plan to rewrite the extension completely [¹]. Currently, a lot of functionality is scattered, calculated in isolation, and making it hard to add certain features/changes. So I want to rethink the organization/architecture of the code. So this issue might not be worth fixing since the code may change... [¹] I plan to ship the rewrite with GNOME 45 (beta), so I don't break the experience for too many people, if there are regressions (only for those who are running bleeding edge, who may be used to it...😅) . If you want to, we could discuss the new extension architecture together. Calling I am not sure what a good fix would be. Delaying the |
|
Found one more issue. This one is pretty bad. STR (not 100% but happens fairly often)
Screencast.from.2023-03-09.23-41-35.webmMaybe GTK4/libadwaita-related. I can't reproduce it with VSCode. Is it something we can even workaround? |
That bug seems to be created by a combination of Removing I've opened https://gitlab.gnome.org/GNOME/mutter/-/issues/2687. Maybe someone can provide a proper fix upstream and we should disable the maximization on x11 for now? [Edit]
Besides making it opt-in since it breaks the animations. |
When a window is meant to use the whole workarea height or the whole width we can assume that the user wants to semi-maximize the window, so let's communicate this to mutter so that it will apply to the window the proper style, avoiding the window to have shadows or wrongly decorated edges