Skip to content

Commit

Permalink
Fix floating window disappears when another app gains focus
Browse files Browse the repository at this point in the history
This is the solution for issue aseprite/aseprite#4265
  • Loading branch information
Gasparoken committed Nov 21, 2024
1 parent a1c113a commit b8face0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions os/osx/window.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// LAF OS Library
// Copyright (C) 2019-2021 Igara Studio S.A.
// Copyright (C) 2019-2024 Igara Studio S.A.
// Copyright (C) 2012-2017 David Capello
//
// This file is released under the terms of the MIT license.
Expand Down Expand Up @@ -118,8 +118,8 @@ - (WindowOSXObjc*)initWithImpl:(os::WindowOSX*)impl
[self makeKeyAndOrderFront:self];

if (spec->floating()) {
self.level = NSFloatingWindowLevel;
self.hidesOnDeactivate = true;
self.level = NSNormalWindowLevel;
self.hidesOnDeactivate = false;
}

// Hide the "View > Show Tab Bar" menu item
Expand Down

0 comments on commit b8face0

Please sign in to comment.