Skip to content
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

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

williameveretteggplant
Copy link
Contributor

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 the beginModalSessionForWindow: method, this appears to reliably display on top as expected.

@@ -1689,6 +1689,7 @@ - (NSModalSession) beginModalSessionForWindow: (NSWindow*)theWindow
[theWindow makeMainWindow];
}
}
[theWindow orderFrontRegardless];
Copy link
Member

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 ?

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

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.

Copy link
Member

@gcasa gcasa left a 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.

@williameveretteggplant
Copy link
Contributor Author

I don't see any way to merge.

@gcasa
Copy link
Member

gcasa commented Aug 9, 2024

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.

@gcasa gcasa merged commit ac56a0f into gnustep:master Aug 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants