mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Add some more common predefined atoms
* src/xterm.c (x_intern_cached_atom, x_get_atom_name): Add DRAWABLE, BITMAP, COLORMAP, CURSOR and FONT.
This commit is contained in:
parent
1c4cd5e7d9
commit
afcec5f0a5
1 changed files with 29 additions and 2 deletions
31
src/xterm.c
31
src/xterm.c
|
|
@ -25631,11 +25631,26 @@ x_intern_cached_atom (struct x_display_info *dpyinfo,
|
|||
if (!strcmp (name, "ATOM"))
|
||||
return XA_ATOM;
|
||||
|
||||
if (!strcmp (name, "WINDOW"))
|
||||
return XA_WINDOW;
|
||||
|
||||
if (!strcmp (name, "DRAWABLE"))
|
||||
return XA_DRAWABLE;
|
||||
|
||||
if (!strcmp (name, "BITMAP"))
|
||||
return XA_BITMAP;
|
||||
|
||||
if (!strcmp (name, "CARDINAL"))
|
||||
return XA_CARDINAL;
|
||||
|
||||
if (!strcmp (name, "WINDOW"))
|
||||
return XA_WINDOW;
|
||||
if (!strcmp (name, "COLORMAP"))
|
||||
return XA_COLORMAP;
|
||||
|
||||
if (!strcmp (name, "CURSOR"))
|
||||
return XA_CURSOR;
|
||||
|
||||
if (!strcmp (name, "FONT"))
|
||||
return XA_FONT;
|
||||
|
||||
if (dpyinfo->motif_drag_atom != None
|
||||
&& !strcmp (name, dpyinfo->motif_drag_atom_name))
|
||||
|
|
@ -25698,6 +25713,18 @@ x_get_atom_name (struct x_display_info *dpyinfo, Atom atom,
|
|||
case XA_WINDOW:
|
||||
return xstrdup ("WINDOW");
|
||||
|
||||
case XA_DRAWABLE:
|
||||
return xstrdup ("DRAWABLE");
|
||||
|
||||
case XA_BITMAP:
|
||||
return xstrdup ("BITMAP");
|
||||
|
||||
case XA_COLORMAP:
|
||||
return xstrdup ("COLORMAP");
|
||||
|
||||
case XA_FONT:
|
||||
return xstrdup ("FONT");
|
||||
|
||||
default:
|
||||
if (dpyinfo->motif_drag_atom
|
||||
&& atom == dpyinfo->motif_drag_atom)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue