Replies: 2 comments 1 reply
-
I tried to addressed this problem by adding 2025-05-24.11.30.23.mov |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tasuren We would be happy to use this kind of approach. However, we'd prefer it if you re-used the existing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is related to #4947.
Problem
The GPUI window title bar height is fixed at the default height of 28px on macOS. It seems that we cannot make it any longer than 28px, which limits UI customization for applications that require a taller draggable area.
Proposed Solution
I propose adding a
drag_region
method to theDiv
component, which enables window dragging. This is inspired by thedata-tauri-drag-region
approach used in Tauri.This method would allow developers to designate arbitrary areas as draggable, thereby decoupling window dragging from the fixed title bar.
Alternatively, instead of introducing
drag_region
, we could add astart_window_drag
method to the window itself, which can then be invoked from anon_mouse_down
event. This approach may require fewer changes overall. This approach is similar to winit’sdrag_window
method.Pros
Beta Was this translation helpful? Give feedback.
All reactions