From d1648945fc4d665221eedc383618d5bb059d2ba3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 19 Jan 2022 21:26:38 +0800 Subject: [PATCH] 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. --- src/xfns.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 (); -- 2.39.2