Drag and Drop (+ actual file choose widget?) #30

Open
opened 2026-07-21 17:41:16 +09:00 by IoI_xD · 1 comment
Owner

Milsko should have Drag and Drop support. How it'd probably work is that any widget (including window) can be created with a new MwNacceptsDnD property, which enables it to take a file as a drag and drop. There's maybe discussion to be had about whether it should be on any widgets or just the window widget, because if the former, we could then have a widget for a web-style file choosing interface (currently you make a button that launches a file picker, maybe with a label alongside it for showing the chosen file).

There'd need to be a bit of discussion on how to synchornize the backends on certain features. For example - Wayland can let us filter DnD input based on mime types. Can all backends do this, and if so, would we use mime type for all of them?

Milsko should have Drag and Drop support. How it'd probably work is that any widget (including window) can be created with a new `MwNacceptsDnD` property, which enables it to take a file as a drag and drop. There's maybe discussion to be had about whether it should be on any widgets or just the window widget, because if the former, we could then have a widget for a web-style file choosing interface (currently you make a button that launches a file picker, maybe with a label alongside it for showing the chosen file). There'd need to be a bit of discussion on how to synchornize the backends on certain features. For example - Wayland can let us filter DnD input based on mime types. Can all backends do this, and if so, would we use mime type for all of them?
Author
Owner

implemented for win32, just gotta do for wayland.

i personally don't care to do this for X11 after looking at how, somebody else can do it instead.

implemented for win32, just gotta do for wayland. i personally don't care to do this for X11 after looking at how, somebody else can do it instead.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pyrite-dev/milsko#30
No description provided.