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
Use NSWindow API for changing fullscreen mode #478
Conversation
instead of going through NSView's API. The latter does offer more options, but messes up the fullscreen mode for some reason (UI becomes unresponsive because input events are no longer received). Using `self.window toggleFullScreen:self` also does not mess with additional displays (only the display showing Squeak is put into fullscreen mode).
@@ -48,6 +48,7 @@ | |||
|
|||
extern SqueakOSXAppDelegate *gDelegateApp; | |||
extern struct VirtualMachine* interpreterProxy; | |||
extern int getFullScreenFlag(); |
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.
Just a detail, but should be sqInt
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.
Have you given the PR a try locally?
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.
Personally I loathe and despise (fullScreen == 0) Correct C is !fullScreen. ;-)
And getFullScreenFlag() == (fullScreen == 1) is better written as getFullScreenFlag() == (fullScreen != 0) (or occasionally one will see getFullScreenFlag() == !!fullScreen).
…[ is:onObjStack: ] SURVIVED 8/8 test cases.
… [ scavengingGCTenuringIf: ] 14 test cases.
…[ scavengingGCTenuringIf: ] 14/14 test case are EQUIVALENT
instead of going through NSView's API. The latter does offer more options, but messes up the fullscreen mode for some reason (UI becomes unresponsive because input events are no longer received).
Using
self.window toggleFullScreen:self
also does not mess with additional displays (only the display showing Squeak is put into fullscreen mode).Please test and review!