mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-02 09:22:01 +02:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user