mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
data-device: Record the serial number for the current selection
And reject setting a selection that's older than our current selection.
This commit is contained in:
parent
74aec06625
commit
a9f951b003
2 changed files with 10 additions and 3 deletions
|
|
@ -266,6 +266,7 @@ struct wl_input_device {
|
|||
struct wl_listener drag_icon_listener;
|
||||
struct wl_signal drag_icon_signal;
|
||||
|
||||
uint32_t selection_serial;
|
||||
struct wl_data_source *selection_data_source;
|
||||
struct wl_listener selection_data_source_listener;
|
||||
struct wl_signal selection_signal;
|
||||
|
|
@ -343,7 +344,7 @@ wl_input_device_end_pointer_grab(struct wl_input_device *device);
|
|||
|
||||
void
|
||||
wl_input_device_set_selection(struct wl_input_device *device,
|
||||
struct wl_data_source *source);
|
||||
struct wl_data_source *source, uint32_t serial);
|
||||
|
||||
|
||||
void *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue