emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e9ec7e5349: ; * src/xterm.c (x_send_scroll_bar_event): Minor clea


From: Po Lu
Subject: master e9ec7e5349: ; * src/xterm.c (x_send_scroll_bar_event): Minor clean up.
Date: Tue, 13 Dec 2022 07:03:16 -0500 (EST)

branch: master
commit e9ec7e53495b94627174ee1b228a6fc6a6e4d859
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    ; * 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 3c8dbce30e..e78ec3c32c 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]