@@ -600,6 +600,9 @@ static void intern_global_atoms(Ghandles *const g) {
600
600
{ & g -> wm_user_time , "_NET_WM_USER_TIME" },
601
601
{ & g -> wmDeleteMessage , "WM_DELETE_WINDOW" },
602
602
{ & g -> net_supported , "_NET_SUPPORTED" },
603
+ { & g -> net_wm_name , "_NET_WM_NAME" },
604
+ { & g -> net_wm_icon_name , "_NET_WM_ICON_NAME" },
605
+ { & g -> utf8_string , "UTF8_STRING" },
603
606
};
604
607
Atom labels [QUBES_ARRAY_SIZE (atoms_to_intern )];
605
608
const char * names [QUBES_ARRAY_SIZE (atoms_to_intern )];
@@ -2925,7 +2928,11 @@ static void handle_wmname(Ghandles * g, struct windowdata *vm_window)
2925
2928
Xutf8TextListToTextProperty (g -> display , list , 1 , XUTF8StringStyle ,
2926
2929
& text_prop );
2927
2930
XSetWMName (g -> display , vm_window -> local_winid , & text_prop );
2931
+ XChangeProperty (g -> display , vm_window -> local_winid , g -> net_wm_name ,
2932
+ g -> utf8_string , 8 , PropModeReplace , (unsigned char * ) buf , strlen (buf ));
2928
2933
XSetWMIconName (g -> display , vm_window -> local_winid , & text_prop );
2934
+ XChangeProperty (g -> display , vm_window -> local_winid , g -> net_wm_icon_name ,
2935
+ g -> utf8_string , 8 , PropModeReplace , (unsigned char * ) buf , strlen (buf ));
2929
2936
XFree (text_prop .value );
2930
2937
}
2931
2938
0 commit comments