feat: cleanup

This commit is contained in:
Lucas Oskorep
2025-10-17 01:26:57 -04:00
parent 5a6c3ccd72
commit 9f46347179

View File

@@ -18,7 +18,6 @@ export default class WindowContainer {
_workArea: Rect; _workArea: Rect;
constructor(workspaceArea: Rect,) { constructor(workspaceArea: Rect,) {
// this._id = monitorId;
this._tiledItems = []; this._tiledItems = [];
this._tiledWindowLookup = new Map<number, WindowWrapper>(); this._tiledWindowLookup = new Map<number, WindowWrapper>();
this._workArea = workspaceArea; this._workArea = workspaceArea;
@@ -39,10 +38,8 @@ export default class WindowContainer {
} }
addWindow(winWrap: WindowWrapper): void { addWindow(winWrap: WindowWrapper): void {
// Add window to managed windows
this._tiledItems.push(winWrap); this._tiledItems.push(winWrap);
this._tiledWindowLookup.set(winWrap.getWindowId(), winWrap); this._tiledWindowLookup.set(winWrap.getWindowId(), winWrap);
// winWrap.setParent(this);
queueEvent({ queueEvent({
name: "tiling-windows", name: "tiling-windows",
callback: () => { callback: () => {
@@ -115,7 +112,6 @@ export default class WindowContainer {
Logger.log("WorkArea", this._workArea); Logger.log("WorkArea", this._workArea);
// Get all windows for current workspaceArea
this._tileItems() this._tileItems()
return true return true