]> git.sur5r.net Git - i3/i3/blobdiff - include/data.h
re-add support for legacy window titles (WM_NAME)
[i3/i3] / include / data.h
index 154c0828d6b10b1cc6799516cf787ff01e66af2e..565dbaac0e54e77fd99eb990c537347e6e9ca83a 100644 (file)
@@ -247,11 +247,21 @@ struct xoutput {
 struct Window {
     xcb_window_t id;
 
-    const char *class_class;
-    const char *class_instance;
-    const char *name_ucs2;
-    const char *name_utf8;
+    char *class_class;
+    char *class_instance;
+
+    /** The name of the window as it will be passod to X11 (in UCS2 if the
+     * application supports _NET_WM_NAME, in COMPOUND_TEXT otherwise). */
+    char *name_x;
+
+    /** The name of the window as used in JSON (in UTF-8 if the application
+     * supports _NET_WM_NAME, in COMPOUND_TEXT otherwise) */
+    char *name_json;
+
+    /** The length of the name in glyphs (not bytes) */
     int name_len;
+
+    /** Whether the application used _NET_WM_NAME */
     bool uses_net_wm_name;
 };