mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
21 lines
454 B
JavaScript
21 lines
454 B
JavaScript
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);
|
|
}
|
|
});
|