Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
fix: focus uwp apps when focusing multrin
Browse files Browse the repository at this point in the history
Closes #60
Closes #84
  • Loading branch information
sentialx committed Dec 15, 2019
1 parent 6fad052 commit 8608c2c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/windows/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@ export class AppWindow extends BrowserWindow {
iohook.on('mouseup', async (e: any) => {
this.isMoving = false;

if (process.platform === 'win32' && this.isFocused()) {
if (this.selectedContainer) {
for (const w of this.selectedContainer.windows) {
w.bringToTop();
}
}
}

if (this.isUpdatingContentBounds) {
setTimeout(() => {
if (this.selectedContainer) {
Expand Down

0 comments on commit 8608c2c

Please sign in to comment.