@@ -616,6 +616,9 @@ static void intern_global_atoms(Ghandles *const g) {
616
616
{ & g -> net_supported , "_NET_SUPPORTED" },
617
617
{ & g -> wm_pid , "_NET_WM_PID" },
618
618
{ & g -> wm_ping , "_NET_WM_PING" },
619
+ { & g -> net_wm_name , "_NET_WM_NAME" },
620
+ { & g -> net_wm_icon_name , "_NET_WM_ICON_NAME" },
621
+ { & g -> utf8_string , "UTF8_STRING" },
619
622
};
620
623
Atom labels [QUBES_ARRAY_SIZE (atoms_to_intern )];
621
624
const char * names [QUBES_ARRAY_SIZE (atoms_to_intern )];
@@ -3066,7 +3069,11 @@ static void handle_wmname(Ghandles * g, struct windowdata *vm_window)
3066
3069
Xutf8TextListToTextProperty (g -> display , list , 1 , XUTF8StringStyle ,
3067
3070
& text_prop );
3068
3071
XSetWMName (g -> display , vm_window -> local_winid , & text_prop );
3072
+ XChangeProperty (g -> display , vm_window -> local_winid , g -> net_wm_name ,
3073
+ g -> utf8_string , 8 , PropModeReplace , (unsigned char * ) buf , strlen (buf ));
3069
3074
XSetWMIconName (g -> display , vm_window -> local_winid , & text_prop );
3075
+ XChangeProperty (g -> display , vm_window -> local_winid , g -> net_wm_icon_name ,
3076
+ g -> utf8_string , 8 , PropModeReplace , (unsigned char * ) buf , strlen (buf ));
3070
3077
XFree (text_prop .value );
3071
3078
}
3072
3079
0 commit comments