simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sun Jul 13 14:48:19 BST 2025
TL;DR:
4c4d262 GTK: remove dependency on X11 headers
880288c X11: use the right timestamp for SetSelectionOwner.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2025-07-13 14:48:19
commit 4c4d2624e4f9495a97c40be622b67f5cee5660c1
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=4c4d2624e4f9495a97c40be622b67f5cee5660c1;hp=8314b038070839a2e5358cf10aa7da7f01616cf6
Author: Alexander Tsoy <alexander at tsoy.me>
Date: Sun Jul 13 15:58:35 2025 +0300
GTK: remove dependency on X11 headers
<X11/Xatom.h> header is not needed since 5062bee2ec70
Other headers doesn't seem to be needed as well.
gtk.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
commit 880288cbbcb55b2f7b3520a45aefbfc2592dd362
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=880288cbbcb55b2f7b3520a45aefbfc2592dd362;hp=4c4d2624e4f9495a97c40be622b67f5cee5660c1
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Jul 13 14:40:05 2025 +0100
X11: use the right timestamp for SetSelectionOwner.
When you set an X selection in response to an X event, you're supposed
to take the X server timestamp from the event and pass it back to the
SetSelectionOwner request, instead of just passing the cop-out value
CurrentTime.
I noticed the use of CurrentTime in a line modified by the previous
commit, and thought I'd see if it was easy to fix. It turns out it is:
GTK has a handy gtk_get_current_event_time() function, which will
return the event timestamp if you call it from within an event handler
responding to an X event, and default to CurrentTime if one isn't. So
it's very easy to tell GTK "please do the right thing if convenient".
(I presume that when GTK is using a backend other than X11, either all
of this is ignored anyway, or the same function call will find
something appropriate to do.)
gtk.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list