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,6 +1,6 @@
const { GObject } = imports.gi;
const { AppBase } = imports.src.appBase;
const { HeaderBarBase } = imports.src.headerbarBase;
const { HeaderBarRemote } = imports.src.headerbarRemote;
const { WidgetRemote } = imports.src.widgetRemote;
var AppRemote = GObject.registerClass(
@@ -13,7 +13,7 @@ class ClapperAppRemote extends AppBase
const clapperWidget = new WidgetRemote();
this.active_window.set_child(clapperWidget);
const headerBar = new HeaderBarBase(this.active_window);
const headerBar = new HeaderBarRemote();
this.active_window.set_titlebar(headerBar);
this.active_window.maximize();