-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[feat] Snap layouts support on Windows when using frameless windows #4531
Comments
This would be something very interesting to have, it's then easier to make an app look Window's native |
Are there any plans on supporting snap layouts? |
Yes, or maybe "wishes" instead of "plans". Anyway, the lack of information is my bad, i only ever talked about this in other issues and on discord. So here's a tldr: |
Waiting for webview2 to open the api I think is irrational, although there are compatibility issues with adaptation. |
Looks like it has been merged now. |
Wish it will be implemented in the standard tauri v2 :) |
This won't be implemented for v2 since we're still blocked by webview2. The pr from their repo I linked above was sadly for their composition based apis only and we currently can't use those. |
Can we raise our issues to them to gain support? Is there any such action currently? |
There were a few issues already, especially MicrosoftEdge/WebView2Feedback#446. There was no interest in fixing this (or adding support for it, however you wanna phrase it) in a more general way. They are working on WCO though: MicrosoftEdge/WebView2Feedback#4532 but that won't support win 7/8 if that matters. |
anything new now? |
Describe the problem
Details about snap layouts
If I use the window decorations provided by Tauri, then I can use snap layouts.
If I set the window to
"decorations": false
, the window will not be able to use snap layouts.Describe the solution you'd like
Tauri already uses data-tauri-drag-region to support window dragging, so we might consider introducing a attribute like data-tauri-maximize-button-region to support this feature.
This should work as follows.
Alternatives considered
Platform-specific window behavior is very complex, and leaving window behavior to the user can be tricky to implement.
Electron provides BrowserWindow to handle similar issues.
Tauri can provide similar built-in components, which will also be easy to manage and optimize.
Additional context
No response
The text was updated successfully, but these errors were encountered: