mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
removed unused maximization handling logic
This commit is contained in:
parent
3f08a45c79
commit
bab6f5cb5f
@ -116,11 +116,6 @@ class KWinDriver {
|
||||
workspace.numberScreensChanged.connect(this.onNumberScreensChanged);
|
||||
workspace.screenResized.connect(this.engine.arrange);
|
||||
|
||||
workspace.clientMaximizeSet.connect((client: KWin.Client, h: boolean, v: boolean) => {
|
||||
/* XXX : This signal currently fires only on *FULL* maximization. */
|
||||
this.engine.handleMaximization(client, h || v);
|
||||
});
|
||||
|
||||
// TODO: handle workspace.activitiesChanged signal
|
||||
// TODO: handle workspace.activityAdded signal
|
||||
// TODO: handle workspace.activityRemoved signal
|
||||
|
@ -34,7 +34,6 @@ class Tile {
|
||||
public geometry: QRect;
|
||||
public isError: boolean;
|
||||
public isNew: boolean;
|
||||
public maximized: boolean;
|
||||
|
||||
constructor(client: KWin.Client) {
|
||||
this.arrangeCount = 0;
|
||||
@ -47,7 +46,6 @@ class Tile {
|
||||
};
|
||||
this.isError = false;
|
||||
this.isNew = true;
|
||||
this.maximized = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -130,14 +128,6 @@ class TilingEngine {
|
||||
});
|
||||
}
|
||||
|
||||
public handleMaximization = (client: KWin.Client, maximized: boolean) => {
|
||||
const tile = this.getTileFromClient(client);
|
||||
if (tile === null) return;
|
||||
|
||||
tile.maximized = maximized;
|
||||
this.arrange();
|
||||
}
|
||||
|
||||
public handleUserInput = (input: UserInput) => {
|
||||
// TODO: per-layout handlers
|
||||
switch (input) {
|
||||
|
Loading…
Reference in New Issue
Block a user