summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-19 21:26:38 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-19 21:28:09 +0800
commitd1648945fc4d665221eedc383618d5bb059d2ba3 (patch)
tree9e9897f9923966b4077076e1231026dd919cf66f /src
parent2122b83995398238fcf387185eb9cf91a62596d1 (diff)
Fix recent change for big endian systems where `Atom' is 64 bits
* src/xfns.c (x_create_tip_frame): Cast atoms to xcb_atom_t and pass a reference to that to xcb_change_property instead.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 29dc575081c..a1435d53513 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -7152,6 +7152,9 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms)
unblock_input ();
#else
uint32_t value_list[4];
+ xcb_atom_t net_wm_window_type_tooltip
+ = (xcb_atom_t) dpyinfo->Xatom_net_window_type_tooltip;
+
f->output_data.x->current_cursor = f->output_data.x->text_cursor;
/* Values are set in the order of their enumeration in `enum
xcb_cw_t'. */
@@ -7183,7 +7186,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms)
(xcb_window_t) tip_window,
(xcb_atom_t) dpyinfo->Xatom_net_window_type,
(xcb_atom_t) dpyinfo->Xatom_ATOM,
- 32, 1, &dpyinfo->Xatom_net_window_type_tooltip);
+ 32, 1, &net_wm_window_type_tooltip);
initial_set_up_x_back_buffer (f);
unblock_input ();