mirror of
https://github.com/esjeon/krohnkite.git
synced 2024-10-04 07:18:09 +03:00
replace activity/desktop event to context event
This commit is contained in:
parent
b07a2c92f3
commit
5c619a633d
@ -189,10 +189,10 @@ class KWinDriver implements IDriver {
|
|||||||
this.control.onScreenResized(screen));
|
this.control.onScreenResized(screen));
|
||||||
|
|
||||||
this.connect(workspace.currentActivityChanged, (activity: string) =>
|
this.connect(workspace.currentActivityChanged, (activity: string) =>
|
||||||
this.control.onCurrentActivityChanged(activity));
|
this.control.onCurrentContextChanged(this.getCurrentContext()));
|
||||||
|
|
||||||
this.connect(workspace.currentDesktopChanged, (desktop: number, client: KWin.Client) =>
|
this.connect(workspace.currentDesktopChanged, (desktop: number, client: KWin.Client) =>
|
||||||
this.control.onCurrentDesktopChanged(desktop));
|
this.control.onCurrentContextChanged(this.getCurrentContext()));
|
||||||
|
|
||||||
this.connect(workspace.clientAdded, (client: KWin.Client) => {
|
this.connect(workspace.clientAdded, (client: KWin.Client) => {
|
||||||
const handler = () => {
|
const handler = () => {
|
||||||
|
@ -33,18 +33,13 @@ class TilingController {
|
|||||||
this.engine.arrange();
|
this.engine.arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
public onScreenResized(screen: number): void {
|
public onScreenResized(screen: any): void {
|
||||||
debugObj(() => ["onScreenResized", {screen}]);
|
debugObj(() => ["onScreenResized", {screen}]);
|
||||||
this.engine.arrange();
|
this.engine.arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
public onCurrentActivityChanged(activity: string): void {
|
public onCurrentContextChanged(context: IDriverContext): void {
|
||||||
debugObj(() => ["onCurrentActivityChanged", {activity}]);
|
debugObj(() => ["onCurrentContextChanged", {context}]);
|
||||||
this.engine.arrange();
|
|
||||||
}
|
|
||||||
|
|
||||||
public onCurrentDesktopChanged(desktop: number): void {
|
|
||||||
debugObj(() => ["onCurrentDesktopChanged", {desktop}]);
|
|
||||||
this.engine.arrange();
|
this.engine.arrange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user