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

GNUstep:In a multi-display setup, the main menu does not to a new display when emacs window is moved #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mclarenlabs
Copy link

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.

…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.
@tusharhero
Copy link

Emacs doesn't use Github, this is just a mirror.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants