feat(windows): Enable native resizing on undecorated windows with shadows #905
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.
I started looking into the code because i wanted to remove the titlebar but keep the borders + shadows. Turns out the undecorated shadows code is basically what i wanted already but the code i saw when researching it was a bit different.
Turns out, it looks the same (i think) as before, but now enables native resizing with resize handles outside of the window.
Only the top bar resizing is still messed up because it's just 1px because top bar resizing is typically inside the window, not outside like on the other borders :/ -> Increasing the bordersize there will make the window look ugly or will require us to color match the titlebar with the window content but it'd still be weird with the control buttons.
I never resize with the top bar so i feel like this is good enough already but we can do that in JS in tauri later and there it'd actually be correct behavior (as opposed to the current undecorated resizing which is inside the window)
I only tested this on Windows 11 so far which is why this is a draft pr, apart from wanting to get general feedback of course.