mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-10-05 12:37:47 +03:00
chore: remove enforceSize function
This commit is contained in:
parent
3c6b367a3a
commit
a95ff95c34
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user