Replace GTK headerbar with custom implementation

This avoids D&D controllers clash and allows to freely customize how maximize, minimize and close buttons work (differently for e.g. web application) and where are they placed
This commit is contained in:
Rafał Dzięgiel
2021-02-16 12:08:45 +01:00
parent 6448012edd
commit 530f60bce9
6 changed files with 167 additions and 71 deletions

View File

@@ -4,11 +4,15 @@ const { HeaderBarBase } = imports.src.headerbarBase;
var HeaderBar = GObject.registerClass(
class ClapperHeaderBar extends HeaderBarBase
{
_init(window)
_init()
{
super._init(window);
super._init();
this.add_css_class('osdheaderbar');
}
this.title_widget.visible = false;
_onWindowButtonActivate(action)
{
this.activate_action(action, null);
}
_onFloatButtonClicked()