Tiling-Assistant icon indicating copy to clipboard operation
Tiling-Assistant copied to clipboard

add option to hide title bar

Open mhinsch opened this issue 2 years ago • 5 comments

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).

mhinsch avatar Dec 08 '22 18:12 mhinsch

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.

Leleat avatar Dec 09 '22 13:12 Leleat

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?

mhinsch avatar Dec 09 '22 13:12 mhinsch

[...] 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.

Leleat avatar Dec 09 '22 13:12 Leleat

[...] 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 avatar Dec 09 '22 15:12 mhinsch

@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.

CoderRuq avatar Jan 20 '23 17:01 CoderRuq