mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-19 04:19:26 -07:00
Windows update (#49)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user