Tiling-Assistant
Tiling-Assistant copied to clipboard
add option to hide title bar
For tiled windows the title bar is not very useful, so for maximum screen space it would be nice to be able to be able to hide it (when tiled).
I am not gonna implement this myself since apps in GNOME's ecosystem don't have a titlebar and the existing solutions seem to rely on a XOrg utility. So IMO it's not worth it to do it from scratch.
I think I am might just write some 'compatibility' code to make my extension work with other extensions that remove the titlebar (where possible). Although this won't come any time soon because I am in the process of refactoring/rewriting my extension.
That makes sense. I have no idea at all how all of this works internally, but if tiled windows thought they were in a maximised state, wouldn't an extension like Pixel Saver automatically remove their title bars?
[...] but if tiled windows thought they were in a maximised state, wouldn't an extension like Pixel Saver automatically remove their title bars?
That would be the case for a 'true/built-in' maximization/tiling. If you use Pixel Saver (just as an example), it should still work with maximized windows even with my extension installed (unless you added gaps to 'maximized' windows in the preferences).
Windows, which were tiled with my extension (and all other tiling extensions for that matter), won't work however. Pixel Saver listens to built-in events; for example, when a window is maximized. So it won't know if a window is tiled with an extension, because all tiling extensions don't actually tile windows. Tiling extensions just programmatically move/resize/manage windows. But in the end those 'tiled' window are all technically still normal floating windows. That's a limitation of being a GNOME Shell extension.
[...] but if tiled windows thought they were in a maximised state, wouldn't an extension like Pixel Saver automatically remove their title bars?
That would be the case for a 'true/built-in' maximization/tiling. If you use Pixel Saver (just as an example), it should still work with maximized windows even with my extension installed (unless you added gaps to 'maximized' windows in the preferences).
Windows, which were tiled with my extension (and all other tiling extensions for that matter), won't work however. Pixel Saver listens to built-in events; for example, when a window is maximized. So it won't know if a window is tiled with an extension, because all tiling extensions don't actually tile windows. Tiling extensions just programmatically move/resize/manage windows. But in the end those 'tiled' window are all technically still normal floating windows. That's a limitation of being a GNOME Shell extension.
Thanks for the explanation, that makes perfect sense. Pity, that would have been such an elegant solution.
@mhinsch consider using this: https://github.com/velitasali/gtktitlebar
Doesn't work on GTK apps since the header bar has integrated window controls, but works on all other apps.