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

Use NSWindow API for changing fullscreen mode #478

Merged
merged 2 commits into from Feb 28, 2020

Conversation

fniephaus
Copy link
Member

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!

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();
Copy link
Contributor

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

Copy link
Member Author

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?

Copy link
Contributor

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

@fniephaus fniephaus merged commit eb2ee2c into Cog Feb 28, 2020
@fniephaus fniephaus deleted the fniephaus/fullscreen-fix branch February 28, 2020 15:35
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 23, 2021
hogoww referenced this pull request in hogoww/opensmalltalk-vm Dec 23, 2021
…[ is:onObjStack: ] SURVIVED 8/8 test cases.
hogoww referenced this pull request in hogoww/opensmalltalk-vm Feb 26, 2022
… [ scavengingGCTenuringIf: ] 14 test cases.
hogoww referenced this pull request in hogoww/opensmalltalk-vm Feb 26, 2022
…[ scavengingGCTenuringIf: ] 14/14 test case are EQUIVALENT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants