From e9ec7e53495b94627174ee1b228a6fc6a6e4d859 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 13 Dec 2022 20:02:46 +0800 Subject: [PATCH] ; * src/xterm.c (x_send_scroll_bar_event): Minor clean up. --- src/xterm.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index 3c8dbce30e7..e78ec3c32c0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -15105,15 +15105,11 @@ x_send_scroll_bar_event (Lisp_Object window, enum scroll_bar_part part, ev->window = FRAME_X_WINDOW (f); ev->format = 32; - /* A 32-bit X client can pass a window pointer through the X server - as-is. - - A 64-bit client is in trouble because a pointer does not fit in - the 32 bits given for ClientMessage data and will be truncated by - Xlib. So use two slots and hope that X12 will resolve such - issues someday. */ - ev->data.l[0] = iw >> 31 >> 1; - ev->data.l[1] = sign_shift <= 0 ? iw : iw << sign_shift >> sign_shift; + /* These messages formerly contained a pointer to the window, but + now that information is kept internally. The following two + fields are thus zero. */ + ev->data.l[0] = 0; + ev->data.l[1] = 0; ev->data.l[2] = part; ev->data.l[3] = portion; ev->data.l[4] = whole; -- 2.39.2