mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Use x_get_atom_name for some more things
* src/xterm.c (x_dnd_send_unsupported_drop, x_dnd_send_drop): Use x_get_atom_name instead of XGetAtomName.
This commit is contained in:
parent
79d0b1a14c
commit
c67c7ab53c
1 changed files with 6 additions and 6 deletions
12
src/xterm.c
12
src/xterm.c
|
|
@ -3244,13 +3244,13 @@ x_dnd_send_unsupported_drop (struct x_display_info *dpyinfo, Window target_windo
|
|||
XFree (atom_names[i - 1]);
|
||||
}
|
||||
|
||||
name = XGetAtomName (dpyinfo->display,
|
||||
x_dnd_wanted_action);
|
||||
name = x_get_atom_name (dpyinfo, x_dnd_wanted_action,
|
||||
false);
|
||||
|
||||
if (name)
|
||||
{
|
||||
arg = intern (name);
|
||||
XFree (name);
|
||||
xfree (name);
|
||||
}
|
||||
else
|
||||
arg = Qnil;
|
||||
|
|
@ -3810,12 +3810,12 @@ x_dnd_send_drop (struct frame *f, Window target, Time timestamp,
|
|||
|
||||
lval = Qnil;
|
||||
atom_names = alloca (x_dnd_n_targets * sizeof *atom_names);
|
||||
name = XGetAtomName (dpyinfo->display, x_dnd_wanted_action);
|
||||
name = x_get_atom_name (dpyinfo, x_dnd_wanted_action, false);
|
||||
|
||||
if (!XGetAtomNames (dpyinfo->display, x_dnd_targets,
|
||||
x_dnd_n_targets, atom_names))
|
||||
{
|
||||
XFree (name);
|
||||
xfree (name);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -3833,7 +3833,7 @@ x_dnd_send_drop (struct frame *f, Window target, Time timestamp,
|
|||
XSETINT (ie.x, win_x);
|
||||
XSETINT (ie.y, win_y);
|
||||
|
||||
XFree (name);
|
||||
xfree (name);
|
||||
kbd_buffer_store_event (&ie);
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue