]> git.eshelyaron.com Git - emacs.git/commitdiff
Add some more common predefined atoms
authorPo Lu <luangruo@yahoo.com>
Sun, 26 Jun 2022 07:36:43 +0000 (15:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 26 Jun 2022 07:36:43 +0000 (15:36 +0800)
* src/xterm.c (x_intern_cached_atom, x_get_atom_name): Add
DRAWABLE, BITMAP, COLORMAP, CURSOR and FONT.

src/xterm.c

index 8aeaca230fadbb05c6825d1df165aa6276cfde47..6afb2a3312f74c4303f09844a05dd5ed50101831 100644 (file)
@@ -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)