Skip to content

Commit 884e5fc

Browse files
connorjclarkSiegeLord
authored andcommitted
[osx] Configure NSAlert to be on top
1 parent dab77da commit 884e5fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/native_dialog/osx_dialog.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ int _al_show_native_message_box(ALLEGRO_DISPLAY *display,
186186
[box setMessageText:[NSString stringWithUTF8String: al_cstr(fd->title)]];
187187
[box setInformativeText:[NSString stringWithUTF8String: al_cstr(fd->mb_text)]];
188188
[box setAlertStyle: NSWarningAlertStyle];
189+
[[box window] setLevel: NSFloatingWindowLevel];
189190
for (i = 0; i < [buttons count]; ++i)
190191
[box addButtonWithTitle: [buttons objectAtIndex: i]];
191192

0 commit comments

Comments
 (0)