mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
refactor: remove X11 only fullscreen event
This commit is contained in:
parent
a1d9c3750d
commit
6aa60fabce
@ -231,17 +231,6 @@ export class DriverImpl implements Driver {
|
||||
}
|
||||
};
|
||||
|
||||
const onClientFullScreenSet = (
|
||||
client: KWin.Client,
|
||||
fullScreen: boolean,
|
||||
user: boolean
|
||||
): void => {
|
||||
this.controller.onWindowChanged(
|
||||
this.windowMap.get(client),
|
||||
`fullscreen=${fullScreen} user=${user}`
|
||||
);
|
||||
};
|
||||
|
||||
const onClientMinimized = (client: KWin.Client): void => {
|
||||
if (this.config.preventMinimize) {
|
||||
client.minimized = false;
|
||||
@ -276,10 +265,6 @@ export class DriverImpl implements Driver {
|
||||
this.connect(this.kwinApi.workspace.clientAdded, onClientAdded);
|
||||
this.connect(this.kwinApi.workspace.clientRemoved, onClientRemoved);
|
||||
this.connect(this.kwinApi.workspace.clientMaximizeSet, onClientMaximizeSet);
|
||||
this.connect(
|
||||
this.kwinApi.workspace.clientFullScreenSet,
|
||||
onClientFullScreenSet
|
||||
);
|
||||
this.connect(this.kwinApi.workspace.clientMinimized, onClientMinimized);
|
||||
this.connect(this.kwinApi.workspace.clientUnminimized, onClientUnminimized);
|
||||
}
|
||||
|
1
src/kwinscript/extern/kwin.d.ts
vendored
1
src/kwinscript/extern/kwin.d.ts
vendored
@ -56,7 +56,6 @@ declare namespace KWin {
|
||||
activityAdded: QSignal;
|
||||
activityRemoved: QSignal;
|
||||
clientAdded: QSignal;
|
||||
clientFullScreenSet: QSignal;
|
||||
clientMaximizeSet: QSignal;
|
||||
clientMinimized: QSignal;
|
||||
clientRemoved: QSignal;
|
||||
|
Loading…
Reference in New Issue
Block a user