-
Notifications
You must be signed in to change notification settings - Fork 943
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
On Windows and macOS, add API to enable/disable window controls #2537
On Windows and macOS, add API to enable/disable window controls #2537
Conversation
I have a general question wrt that. Is this about the decoration thing or you can actually disable |
Yeah, this is mainly about disabling the buttons itself so it can't be clicked but the window can still be closed in other ways. |
Then we should explicitly say that it's all about buttons in decorations. You can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
The bitflags should be used instead.
The api should explicitly mention decorations.
Sorry for that short of review here, don't have that many of time and I'm only capable to reveiw general changes in the API not the windows/macOS code anyway.
Done, although I don't quite like the naming, so I am open to suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I agree with the bitflags API.
An example would be nice for testing the functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Api change is fine. The rest is up to windows/macOS maintainers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macOS impl looks good, haven't tested it though; would you mind adding an example for it?
Sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the example - it enabled me to find a bug which I've pushed a fix for ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor notes. Should be fine afterwards.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on Windows 10
(interesting that Windows seems to automatically adjust the style towards a tool window once minimize and maximize are disabled)
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase? Should be good to go afterwards.
Done! |
CHANGELOG.md
if knowledge of this change could be valuable to usersPorting tauri-apps/tao@a50fd86