Windows update (#49)

This commit is contained in:
2026-04-11 21:45:52 -07:00
committed by GitHub
parent 49e46e6b9b
commit 52bab1d611
168 changed files with 9732 additions and 1422 deletions

View File

@@ -62,6 +62,10 @@ export abstract class BaseWindowTracker {
return this.targetWindowFocused;
}
isTargetWindowMinimized(): boolean {
return false;
}
protected updateTargetWindowFocused(focused: boolean): void {
if (this.targetWindowFocused === focused) {
return;
@@ -75,11 +79,11 @@ export abstract class BaseWindowTracker {
this.updateTargetWindowFocused(focused);
}
protected updateGeometry(newGeometry: WindowGeometry | null): void {
protected updateGeometry(newGeometry: WindowGeometry | null, initialFocused = true): void {
if (newGeometry) {
if (!this.windowFound) {
this.windowFound = true;
this.updateTargetWindowFocused(true);
this.updateTargetWindowFocused(initialFocused);
if (this.onWindowFound) this.onWindowFound(newGeometry);
}