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

20
src/headerbarRemote.js Normal file
View File

@@ -0,0 +1,20 @@
const { GObject } = imports.gi;
const { HeaderBarBase } = imports.src.headerbarBase;
var HeaderBarRemote = GObject.registerClass(
class ClapperHeaderBarRemote extends HeaderBarBase
{
_init()
{
super._init();
this.extraButtonsBox.visible = false;
}
_onWindowButtonActivate(action)
{
if(action === 'toggle-maximized')
action = 'toggle_maximized';
this.root.child.sendWs(action);
}
});