macOS: Fix phantom window appears when executing full screen in transition #4714
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.
When a window is in the macOS fullscreen transition animation, if you toggle fullscreen again, an identical window (The shell prompt is cleared) appears that cannot be manipulated or closed and you have to quit the app.
Remove hard-coded fullscreen shortcut, the shortcut in the menu can be customized.
During animation, the newly rendered window (the shell prompt has not yet been redrawn) will be used as the animation, and the window will no longer appear to be rescaled up with jaggies.
I found a problem. (before this PR, not yet solved)
When the mouse cursor is beam, it gets changed to arrow after switching to full screen.
Before this PR, the cursor changed as follows:
After this PR, the cursor changed as follows:
The event handler
cursorUpdate
is executed andupdateCursorImage
is executed.I also found that occasionally there is a
Bad cursor rect event
error log output by cocoa. It seems likely that there is a problem updating the cursor image (to arrow...) when the window is not fully fullscreen.Do you have any ideas to fix this?