Skip to content
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

[Windows] Support snap layout menu #26

Open
Eatham532 opened this issue Apr 12, 2024 · 2 comments
Open

[Windows] Support snap layout menu #26

Eatham532 opened this issue Apr 12, 2024 · 2 comments

Comments

@Eatham532
Copy link

Don't know how difficult it is to do this. But here is some documentation:
https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu

@Gussy
Copy link

Gussy commented Jun 11, 2024

This looks possible by emulating a Win+Z keypress for a middle mouse button click event.

A similar plugin does this with in Rust, triggered by a tauri command from the frontend: https://github.com/clearlysid/tauri-plugin-decorum/blob/main/src/commands.rs

@Eatham532
Copy link
Author

That looks pretty good. One downside to this method is that the menu covers the window controls.

WPF also has a similar issue with this and some people have ideas that could be tested. dotnet/wpf#4825

Or maybe using something from this documentation: https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants