Daniel Colascione <dancol@dancol.org> writes:
The GDK code specifically mentions that programs that handle events
themselves (like Emacs) need to explicitly update the event time (as
my patch does)
The GDK documentation is unclear. You only have to update the event
time if the event is not passed to GDK, by setting *finish to
X_EVENT_DROP, which really only happens with key press events.
What is the bug?
Client messages sent to x-dnd.el did not automatically update the user
time, causing various selection-related functions to use an outdated
timestamp.
Sorry, but I strongly disagree. The concept of signaling to the
underlying window system that the user has interacted in some manner
with a frame is generic and not X-specific. In fact --- doesn't the
pgtk backend need an implementation of this hook too? It, like the
conventional GTK backend, is blind to interactions with the frame
performed using emacsclient.
No, the PGTK backend doesn't have a concept of "server time". The GDK
Wayland backend implements them via event serials, which cannot be
generated. It is also unnecessary to specify the server time when
trying to activate a toplevel window.
The only window system I know of that requires that to be specified is
X, so let's keep the code specific to X.