Ewmh: Add _WMFS_FONT property for external information about font
This commit is contained in:
parent
daeffb324e
commit
719654fcbc
@ -105,6 +105,7 @@ ewmh_init_hints(void)
|
||||
net_atom[wmfs_nmaster] = ATOM("_WMFS_NMASTER");
|
||||
net_atom[wmfs_function] = ATOM("_WMFS_FUNCTION");
|
||||
net_atom[wmfs_cmd] = ATOM("_WMFS_CMD");
|
||||
net_atom[wmfs_font] = ATOM("_WMFS_FONT");
|
||||
|
||||
/* Multi atom _WMFS_STATUSTEXT_<screennum> */
|
||||
for(j = 0; j < s; ++j)
|
||||
|
||||
@ -91,6 +91,10 @@ init_font(void)
|
||||
font = XftFontOpenName(dpy, SCREEN, "sans-10");
|
||||
}
|
||||
|
||||
/* Set font in _WMFS_FONT for eventual status tools */
|
||||
XChangeProperty(dpy, ROOT, net_atom[wmfs_font], net_atom[utf8_string], 8,
|
||||
PropModeReplace, (uchar*)&conf.font, strlen(conf.font));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@ -148,6 +148,7 @@ enum
|
||||
wmfs_screen_count,
|
||||
wmfs_function,
|
||||
wmfs_cmd,
|
||||
wmfs_font,
|
||||
wmfs_statustext,
|
||||
net_last
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user