Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix non-native fullscreen quit to black screen bug #1516

Merged

Conversation

ychin
Copy link
Member

@ychin ychin commented Dec 21, 2024

A previous change #1510 introduced a piece of debug code that erroneously overrode the window property to always return the normal window whereas in normal behavior it should return the full screen window when in non-native full screen. This property was only added for supporting unit tests and also completely unnecessary because the superclass NSWindowController already provides it (the one that we accidentally overrode). Just remove this.

Fix #1515

A previous change macvim-dev#1510 introduced a piece of debug code that
erroneously overrode the `window` property to always return the normal
window whereas in normal behavior it should return the full screen
window when in non-native full screen. This property was only added for
supporting unit tests and also completely unnecessary because the
superclass `NSWindowController` already provides it (the one that we
accidentally overrode). Just remove this.

Fix macvim-dev#1515
@ychin ychin added this to the Release 181 milestone Dec 21, 2024
@ychin
Copy link
Member Author

ychin commented Dec 21, 2024

Will add better regression tests for full screen in the future. Currently, the entire full screen feature isn't really tested which is not ideal.

@ychin ychin merged commit 2b11b01 into macvim-dev:master Dec 21, 2024
4 checks passed
@ychin ychin deleted the fix-non-native-fullscreen-blackscreen-quit branch December 21, 2024 12:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non Native Full Screen :q bug
1 participant