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

macOS: Add movable_by_window_background option to viewport #5412

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jim-ec
Copy link

@jim-ec jim-ec commented Nov 29, 2024

Add an option called movable_by_window_background alongside a new builder method. When set to true, the window is movable by dragging its background (Apple Docs)

This is exclusive to macOS systems, similar to fullsize_content_view.

  • I have followed the instructions in the PR template

Comment on lines 436 to 437
/// macOS: Set to `true` to allow the window to be moved by dragging the background.
#[inline]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bildschirmaufnahme.2024-11-30.um.12.36.56.mov

It doesn't really work well with sliders and draggable widgets, but I guess that's expected.

But maybe add a note to the comment that it doesn't, otherwise people might expect that to work and open issues about it.

@jim-ec
Copy link
Author

jim-ec commented Dec 17, 2024

Sorry for taking so long, I added your requested warning to the doc.

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

Successfully merging this pull request may close these issues.

2 participants