-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal display not on top for some platforms #282
Conversation
@@ -1689,6 +1689,7 @@ - (NSModalSession) beginModalSessionForWindow: (NSWindow*)theWindow | |||
[theWindow makeMainWindow]; | |||
} | |||
} | |||
[theWindow orderFrontRegardless]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks reasonable to me. Any thoughts @fredkiefer ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change looks OK. I have not tested the behaviour but if you have feel free to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested this on Debian 12 and it works properly there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fredkiefer per your comment, I am approving this so that @williameveretteggplant can merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@williameveretteggplant Please go ahead and merge.
I don't see any way to merge. |
This is one of the reasons I advised not creating forks and accepting my invitation instead. If it was a branch on the repo you would have the option to merge. I will do it for you. One sec. |
The problem we have seen is that on some platforms (such as Redhat 8) modal windows, specifically NSAlert, are not reliably appearing above the other windows.
By moving the
orderFrontRegardless
call to a little later in thebeginModalSessionForWindow:
method, this appears to reliably display on top as expected.