mirror of
https://github.com/fltk/fltk.git
synced 2026-05-13 11:58:20 +08:00
Wayland DnD: make insertion cursor follow DnD cursor.
This commit is contained in:
@@ -440,6 +440,7 @@ static void data_device_handle_motion(void *data, struct wl_data_device *data_de
|
||||
Fl::e_x_root = Fl::e_x + fl_dnd_target_window->x();
|
||||
Fl::e_y_root = Fl::e_y + fl_dnd_target_window->y();
|
||||
ret = Fl::handle(FL_DND_DRAG, fl_dnd_target_window);
|
||||
if (Fl::belowmouse()) Fl::belowmouse()->take_focus();
|
||||
}
|
||||
uint32_t supported_actions = ret && (Fl::pushed() || !doing_dnd) ? WL_DATA_DEVICE_MANAGER_DND_ACTION_COPY : WL_DATA_DEVICE_MANAGER_DND_ACTION_NONE;
|
||||
uint32_t preferred_action = supported_actions;
|
||||
|
||||
Reference in New Issue
Block a user