[PATCH weston] dnd: reset the mouse cursor after adding a new item

Bill Spitzak spitzak at gmail.com
Tue Nov 18 15:08:13 PST 2014

I think the dnd client needs to handle normal mouse enter events and set 
the cursor. If the server is not sending an enter right after the drop 
then this is a bug, right?

On 11/18/2014 02:24 PM, Derek Foreman wrote:
> When ending a drag in the window the cursor will be wrong until the mouse
> is moved again.  This is because the item being dragged isn't added
> until after the enter event.
> This patch stores the input device that last entered the window, and
> sets its mouse cursor as new items are dropped.

> +		input_get_position(dnd->last_input, &x, &y);
> +		input_set_pointer_image(dnd->last_input,
> +					lookup_cursor(dnd, x, y));

Can't you just use the xy from the dnd event here?

More information about the wayland-devel mailing list