Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Dont unsnap windows from the edge on ctrl+tab (close #1868)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Dec 8, 2020
1 parent 2dcd096 commit a48373d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/bg/ui/subwindows/tab-switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export async function hide (parentWindow) {
`)
if (selectedTab && typeof selectedTab === 'object') {
let win = BrowserWindow.fromId(selectedTab.winId)
win.show()
if (!win.isFocused()) {
win.focus()
}
tabManager.setActive(win, selectedTab.tabIndex)
}
parentWindow.removeBrowserView(view)
Expand Down

0 comments on commit a48373d

Please sign in to comment.