xorg - How to change _NET_WM_NAME (X Library) -
i try use http://xkbind.sourceforge.net/ (useful displaying keyboard state in window title) on mint maya (based on ubuntu 12.04)
but xkbind change wm_name property
here xkbind.c code fragment
if(xgetwindowattributes(dpy, window, &wa)) { xselectinput(dpy, window, wa.your_event_mask&~propertychangemask); xsync(dpy, false); xsetwmname(dpy, window, p_tp); xselectinput(dpy, window, wa.your_event_mask); }
what function should used change _net_wm_name property too?
example
xkbind gvim
xprop output
wm_name(string) = "lat::[no name] - gvim" _net_wm_name(utf8_string) = "[no name] - gvim"
straightforward call of xchangeproperty() should trick:
xchangeproperty( display, win, xinternatom(display, "_net_wm_name", false), xinternatom(display, "utf8_string", false), 8, propmodereplace, (unsigned char *) utf8_buffer, count);
Comments
Post a Comment