Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/ProGPU.Backend/CocoaNativePopupWindow.OwnedSurface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ private sealed class OwnedOperations(OwnerLease? initialOwner, nint panel, nint
GetOwnedBool(panel, "becomesKeyOnlyIfNeeded\0"u8) &&
!GetOwnedBool(panel, "isReleasedWhenClosed\0"u8) &&
!GetOwnedBool(panel, "canBecomeKeyWindow\0"u8) && !GetOwnedBool(panel, "canBecomeMainWindow\0"u8) &&
OwnedMessageUnsigned(panel, Selector("styleMask\0"u8)) == NonactivatingPanelStyle;
// AppKit reports the nonactivating bit as cleared once the panel is ordered in as a child window
// (macOS 27.0.1 and the macos-15 runner), so only reject style bits the panel was never given.
(OwnedMessageUnsigned(panel, Selector("styleMask\0"u8)) & ~NonactivatingPanelStyle) == 0;

public bool BindOwner(NativeWindowHandle owner)
{
Expand Down
Loading