From 8cd002f1b2001af7fdd2ff68d914fbd43a4d68a4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 1 Dec 2023 09:11:09 +1100 Subject: [PATCH] [client] x11: fix incorrect pointer reference, fixes clipboard Thanks to @JJRcop for bisecting to discover the fault --- client/displayservers/X11/clipboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/X11/clipboard.c b/client/displayservers/X11/clipboard.c index 9fa15074..1aadb95f 100644 --- a/client/displayservers/X11/clipboard.c +++ b/client/displayservers/X11/clipboard.c @@ -93,7 +93,7 @@ bool x11CBEventThread(const XEvent * xe) default: if (xe->type == x11.eventBase + XFixesSelectionNotify) { - XFixesSelectionNotifyEvent * sne = (XFixesSelectionNotifyEvent *)&xe; + XFixesSelectionNotifyEvent * sne = (XFixesSelectionNotifyEvent *)xe; x11CBXFixesSelectionNotify(*sne); return true; }