summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-08-28 12:02:43 +0800
committerPo Lu <luangruo@yahoo.com>2022-08-28 12:02:43 +0800
commitd704c61e25b5498fb7971187789956b9646b94f5 (patch)
treeb459b65f120b82ea514e79243bf23b3530fccec3
parent3f076a8e44b652691ffd4a2a07b04ab956ed4668 (diff)
downloademacs-d704c61e25b5498fb7971187789956b9646b94f5.tar.gz
Fix two issues in xterm.c
* src/xterm.c (x_atom_refs): Make EMACS_SERVER_TIME_PROP atom have a vendor-specific prefix. (x_query_pointer_1): Fix leak of button mask.
-rw-r--r--src/xterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index e7f55255021..7a0a21b1369 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -952,7 +952,7 @@ static const struct x_atom_ref x_atom_refs[] =
ATOM_REFS_INIT ("MULTIPLE", Xatom_MULTIPLE)
ATOM_REFS_INIT ("INCR", Xatom_INCR)
ATOM_REFS_INIT ("_EMACS_TMP_", Xatom_EMACS_TMP)
- ATOM_REFS_INIT ("EMACS_SERVER_TIME_PROP", Xatom_EMACS_SERVER_TIME_PROP)
+ ATOM_REFS_INIT ("_EMACS_SERVER_TIME_PROP", Xatom_EMACS_SERVER_TIME_PROP)
ATOM_REFS_INIT ("TARGETS", Xatom_TARGETS)
ATOM_REFS_INIT ("NULL", Xatom_NULL)
ATOM_REFS_INIT ("ATOM", Xatom_ATOM)
@@ -13520,6 +13520,8 @@ x_query_pointer_1 (struct x_display_info *dpyinfo,
xi_convert_button_state (&buttons, &state);
*mask_return = state | modifiers.effective;
+ XFree (buttons.mask);
+
*root_x_return = lrint (root_x);
*root_y_return = lrint (root_y);
*win_x_return = lrint (win_x);