wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

windowname.c (319B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 char*
      7 windowname(Window *w) {
      8 	char *str;
      9 
     10 	str = getprop_string(w, "_NET_WM_NAME");
     11 	if(str == nil)
     12 		str = getprop_string(w, "WM_NAME");
     13 	if(str == nil)
     14 		str = estrdup("");
     15 	return str;
     16 }
     17