fix: bug with window manager resizing a window during grab ops for 1 frame when the background had to be tiled

This commit is contained in:
Lucas Oskorep
2025-05-20 01:48:34 -04:00
parent 5e9bc796ea
commit ecb5a568cd
2 changed files with 28 additions and 9 deletions

View File

@@ -48,6 +48,7 @@ export class WindowWrapper {
this._dragging = true;
}
stopDragging(): void {
Logger.log("STOPPED DRAGGING")
this._dragging = false;
}
@@ -120,12 +121,11 @@ export class WindowWrapper {
}
}
// This is meant to be an exact copy of Forge's move function, renamed to maintain your API
safelyResizeWindow(rect: Rect): void {
// Keep minimal logging
if (this._dragging) {
Logger.info("STOPPED RESIZE BECAUSE ITEM IS BEING DRAGGED")
return
return;
}
Logger.log("SAFELY RESIZE", rect.x, rect.y, rect.width, rect.height);
const actor = this._window.get_compositor_private();