GNUstep:In a multi-display setup, the main menu does not to a new display when emacs window is moved #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In a multi-display setup, the main menu does not move from one display to
another when the Emacs window is moved between displays. This improvement
adds a notification listener that notifies the mainMenu that the
NSWindowDidChangeScreenNotification has occured.
In other Apps this callback is registered automatically. In NSMenu, the
applicationDidFinishLaunch method registers this for the mainMenu.
However, the way emacs construcgts GNUstep menus in nsmenu.m, constructs
menus in a different manner.
Note: this proposed modification handles one emacs window moving between
different displays, but does not handle the case where there are multiple
emacs windows. In that case, the menu should appear on the display on
which the emacs frame is shown.…y to
another when the Emacs window is moved between displays. This improvement adds a notification listener that notifies the mainMenu that the NSWindowDidChangeScreenNotification has occured.
In other Apps this callback is registered automatically. In NSMenu, the applicationDidFinishLaunch method registers this for the mainMenu. However, the way emacs construcgts GNUstep menus in nsmenu.m, constructs menus in a different manner.
Note: this proposed modification handles one emacs window moving between different displays, but does not handle the case where there are multiple emacs windows. In that case, the menu should appear on the display on which the emacs frame is shown.