diff options
| author | Po Lu | 2022-01-19 21:26:38 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-19 21:28:09 +0800 |
| commit | d1648945fc4d665221eedc383618d5bb059d2ba3 (patch) | |
| tree | 9e9897f9923966b4077076e1231026dd919cf66f /src | |
| parent | 2122b83995398238fcf387185eb9cf91a62596d1 (diff) | |
| download | emacs-d1648945fc4d665221eedc383618d5bb059d2ba3.tar.gz emacs-d1648945fc4d665221eedc383618d5bb059d2ba3.zip | |
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.c | 5 |
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) | |||
| 7152 | unblock_input (); | 7152 | unblock_input (); |
| 7153 | #else | 7153 | #else |
| 7154 | uint32_t value_list[4]; | 7154 | uint32_t value_list[4]; |
| 7155 | xcb_atom_t net_wm_window_type_tooltip | ||
| 7156 | = (xcb_atom_t) dpyinfo->Xatom_net_window_type_tooltip; | ||
| 7157 | |||
| 7155 | f->output_data.x->current_cursor = f->output_data.x->text_cursor; | 7158 | f->output_data.x->current_cursor = f->output_data.x->text_cursor; |
| 7156 | /* Values are set in the order of their enumeration in `enum | 7159 | /* Values are set in the order of their enumeration in `enum |
| 7157 | xcb_cw_t'. */ | 7160 | xcb_cw_t'. */ |
| @@ -7183,7 +7186,7 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms) | |||
| 7183 | (xcb_window_t) tip_window, | 7186 | (xcb_window_t) tip_window, |
| 7184 | (xcb_atom_t) dpyinfo->Xatom_net_window_type, | 7187 | (xcb_atom_t) dpyinfo->Xatom_net_window_type, |
| 7185 | (xcb_atom_t) dpyinfo->Xatom_ATOM, | 7188 | (xcb_atom_t) dpyinfo->Xatom_ATOM, |
| 7186 | 32, 1, &dpyinfo->Xatom_net_window_type_tooltip); | 7189 | 32, 1, &net_wm_window_type_tooltip); |
| 7187 | 7190 | ||
| 7188 | initial_set_up_x_back_buffer (f); | 7191 | initial_set_up_x_back_buffer (f); |
| 7189 | unblock_input (); | 7192 | unblock_input (); |