gpui: Fix popup kind window support on Windows #14063
Merged
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.
Release Notes:
Continue #14044 for Windows
The problem
The
cx.open_window
method has provided us awindow_kind
option to allows creating a Popup kind. This behavior can work on macOS, the popup kind window have no-border, no-shadow, no-resize, and followed theis_movable
if present true it can't move.This PR to fix those supports on Windows.
The border and shadow still exist, I have tried to use WS_POPUP window_style, but it will crash:
So I just make a simple change, to use
WS_EX_TOOLWINDOW
this can disable resize, and connectis_movable
tohandle_hit_test_msg
to disable move, and also no Status Bar icon.Before
before.mp4
After
after.mp4