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] Use native window drag for the custom editor title bars. #99642

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Nov 24, 2024

Fixes godotengine/godot-proposals#11214

  • Adds DisplayServer::window_start_drag function to start window drag as if title bar was clicked (drag process is controlled by the window manager, and allow window to use tiling).
  • Changes EditorTitleBar to use these window drag mode when available.

@Riteo
Copy link
Contributor

Riteo commented Nov 27, 2024

Thank you, this API point will be extremely useful for the wayland backend too, as it's the only way of moving a window there :D

@bruvzg
Copy link
Member Author

bruvzg commented Nov 27, 2024

this API point will be extremely useful for the wayland backend too, as it's the only way of moving a window there :D

In this case, I'll update PR to use a separate feature flag, instead of binding it to existing FEATURE_EXTEND_TO_TITLE.

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

Successfully merging this pull request may close these issues.

Use native window drag handles on macOS when Expand to Title is enabled, making window tiling functional
3 participants