Skip to content

gdk/wayland: Use serial of the latest implicit grab available

Carlos Garnacho requested to merge wip/carlosg/clipboard-serials into main

When getting the serial for primary/clipboard selections we used a function that largely relied on a GdkEvent being passed. We have another available function that looks up the most recent serial given the ongoing touch/tablet input as well.

This is the second best, compared to actually knowing the input/device from the event that was received by the UI an triggered the clipboard operation, and is already in use in other places (e.g. window dragging). It is valid for these situations too.

Closes: #5250 (closed)

Merge request reports