Skip to content

Commit 04cd664

Browse files
committed
fix(overlay): focus false
1 parent b6148c9 commit 04cd664

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/window/ScreenMarker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class ScreenMarker {
6060
},
6161
});
6262

63-
this.screenWaterFlow.blur();
63+
this.screenWaterFlow.setFocusable(false);
6464
this.screenWaterFlow.setContentProtection(false);
6565
this.screenWaterFlow.setIgnoreMouseEvents(true);
6666

@@ -243,7 +243,7 @@ class ScreenMarker {
243243
this.currentOverlay.setAlwaysOnTop(true, 'screen-saver');
244244
}
245245

246-
this.currentOverlay.blur();
246+
this.currentOverlay.setFocusable(false);
247247
this.currentOverlay.setContentProtection(true); // not show for vlm model
248248
this.currentOverlay.setIgnoreMouseEvents(true);
249249

src/main/window/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export async function hideWindowBlock<T>(
147147
try {
148148
mainWindow?.setContentProtection(false);
149149
mainWindow?.setAlwaysOnTop(true);
150-
mainWindow?.blur();
150+
mainWindow?.setFocusable(false);
151151
try {
152152
if (mainWindow) {
153153
originalBounds = mainWindow.getBounds();
@@ -167,7 +167,7 @@ export async function hideWindowBlock<T>(
167167
if (mainWindow && originalBounds) {
168168
mainWindow?.setBounds(originalBounds);
169169
}
170-
mainWindow?.restore();
170+
mainWindow?.setFocusable(true);
171171
}
172172
}
173173

0 commit comments

Comments
 (0)