Skip to content

Commit

Permalink
Fix in MacWindow.focus
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Oct 5, 2023
1 parent 241dcf2 commit ec832d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree/MacWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ final class MacWindow: Window {

@discardableResult
override func focus() -> Bool {
if app.nsApp.activate(options: .activateIgnoringOtherApps) && axWindow.raise() {
// Raise firstly to make sure that by that time we activate the app, particular window would be already on top
if axWindow.raise() && app.nsApp.activate(options: .activateIgnoringOtherApps) {
markAsMostRecentChild()
return true
} else {
Expand Down

0 comments on commit ec832d8

Please sign in to comment.