chore: remove enforceSize function

This commit is contained in:
Mikhail Zolotukhin 2022-09-02 14:22:27 +03:00
parent 3c6b367a3a
commit a95ff95c34

View File

@ -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
*/
@ -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. */