Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
chore: remove enforceSize function
Browse files Browse the repository at this point in the history
  • Loading branch information
gikari committed Sep 2, 2022
1 parent 3c6b367 commit a95ff95
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/kwinscript/engine/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ export interface Engine {
*/
resizeWindow(window: EngineWindow, dir: CompassDirection, step: Step): void;

/**
* Re-apply window geometry, computed by layout algorithm.
*
* Sometimes applications move or resize windows without user intervention,
* which is straight against the purpose of tiling WM. This operation
* move/resize such windows back to where/how they should be.
*/
enforceSize(window: EngineWindow): void;

/**
* @returns the layout we have on the surface of the active window
*/
Expand Down Expand Up @@ -386,12 +377,6 @@ export class EngineImpl implements Engine {
return this.controller.currentWindow;
}

public enforceSize(window: EngineWindow): void {
if (window.tiled && !window.actualGeometry.equals(window.geometry)) {
window.commit();
}
}

public manage(window: EngineWindow): void {
if (!window.shouldIgnore) {
/* engine#arrange will update the state when required. */
Expand Down

0 comments on commit a95ff95

Please sign in to comment.