no-title-bar
no-title-bar copied to clipboard
adds a second titlebar to firefox on ubuntu 20.04
Firefox by default does not have a system titlebar, but draws its own.
In the latest version of Firefox, the title bar is removed by default which has the effect or disturbing the normal behaviour of the no-title-bar extension. To get back to the previous situation, the solution I found is to re-enable the Firefox Title Bar in the Customize settings (look in the bottom left corner):
The point here is not wasting vertical space, if one didn't mind space wasting redundant title-bars one probably wouldn't be trying this extension.
The solution is to use the pixel saver extension, which also happens to be in the ubuntu repo
https://packages.ubuntu.com/source/focal/gnome-shell-extension-pixelsaver
It does not have this problem.
The problem here is the following: Gnome, as have many other display managers, has started to let the applications decide, how it would like to handle its own titlebar, instead of always rendering one for the window. More and more applications have started to do so, like Gnome itself. The Gnome-Terminal or Nautilus have integrated functionality into the titlebar. Mozilla started doing so themselves about 2 years ago by adding the option to hide the titlebar entirely and basically integrating the open tabs into its own titlebar. All this extension does, is to give gnome a hint, that the titlebar can be removed, if it doesn't have any functionality. This doesn't work everytime, because sometimes applications are giving the "wrong" information to the display manager, that they "need" their titlebar and gnome doesn't remove it. One of them seems to be firefox (which I personally fixed by applying the same settings as @johanricher has), but there are many others, like for instance various QT-applications. I hope I could make things clearer here, that there is no unique way of going with the titlebars anymore and there probably will be even less way of enhancing this behaviour through the display manager in the future, up to the point, where this extension becomes useless. Anyway, this still isn't the case right now.
In the latest version of Firefox, the title bar is removed by default which has the effect or disturbing the normal behaviour of the no-title-bar extension. To get back to the previous situation, the solution I found is to re-enable the Firefox Title Bar in the Customize settings (look in the bottom left corner):
Thanks for this 👍🏻
@bughit once you begin experiencing complete freezes of gnome-shell 2-5 times a week with pixel-saver
, and notice that the menu buttons in the top bar don't actually work: the solution is to use the no-titlebar
extension, which hasn't had it's metadata updated to include gnome > 3.30 (https://github.com/franglais125/no-title-bar/blob/master/metadata.json#L13), so "the solution" is to use the no-title-bar-forked
extension, which also happens to be in gnome extensions site and github
https://packages.ubuntu.com/source/focal/gnome-shell-extension-pixelsaver https://github.com/poehlerj/no-title-bar
It does not have these problems.