Make remote app minimize, maximize and close buttons affect Clapper

This commit is contained in:
Rafał Dzięgiel
2021-02-23 11:56:02 +01:00
parent 6950cf1bbb
commit a309ef6099
6 changed files with 46 additions and 18 deletions

View File

@@ -1,19 +1,12 @@
const { GObject, Gtk } = imports.gi;
const { GObject } = imports.gi;
const { HeaderBarBase } = imports.src.headerbarBase;
var HeaderBar = GObject.registerClass(
class ClapperHeaderBar extends HeaderBarBase
{
_init()
{
super._init();
this.add_css_class('osd');
this.add_css_class('osdheaderbar');
}
_onWindowButtonActivate(action)
{
this.activate_action(action, null);
this.activate_action(`window.${action}`, null);
}
_onFloatButtonClicked()