Client: client_set_wanted_tag() -> set xch to { 0 } so fix possibly segfault.
This commit is contained in:
parent
4b5dcfd368
commit
16171797a3
@ -670,7 +670,7 @@ client_size_hints(Client *c)
|
||||
void
|
||||
client_set_wanted_tag(Client *c)
|
||||
{
|
||||
XClassHint xch;
|
||||
XClassHint xch = { 0 };
|
||||
int i, j, k;
|
||||
|
||||
XGetClassHint(dpy, c->win, &xch);
|
||||
@ -696,6 +696,7 @@ client_set_wanted_tag(Client *c)
|
||||
void
|
||||
client_update_attributes(Client *c)
|
||||
{
|
||||
/* For reload use */
|
||||
XChangeProperty(dpy, c->win, ATOM("_WMFS_TAG"), XA_CARDINAL, 32,
|
||||
PropModeReplace, (uchar*)&(c->tag), 1);
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@ ewmh_init_hints(void)
|
||||
/* EWMH hints */
|
||||
net_atom[net_supported] = ATOM("_NET_SUPPORTED");
|
||||
net_atom[net_client_list] = ATOM("_NET_CLIENT_LIST");
|
||||
net_atom[net_frame_extents] = ATOM("_NET_FRAME_EXTENTS");
|
||||
net_atom[net_number_of_desktops] = ATOM("_NET_NUMBER_OF_DESKTOPS");
|
||||
net_atom[net_current_desktop] = ATOM("_NET_CURRENT_DESKTOP");
|
||||
net_atom[net_desktop_names] = ATOM("_NET_DESKTOP_NAMES");
|
||||
|
||||
@ -69,7 +69,7 @@ launcher_execute(Launcher launcher)
|
||||
infobar[selscreen].bar->geo.height - 1,
|
||||
infobar[selscreen].bar->bg,
|
||||
infobar[selscreen].bar->fg,
|
||||
False, False, False);
|
||||
False, False, conf.border.bar);
|
||||
|
||||
barwin_map(bw);
|
||||
barwin_refresh_color(bw);
|
||||
|
||||
@ -59,6 +59,7 @@ enum
|
||||
net_supported,
|
||||
net_wm_name,
|
||||
net_client_list,
|
||||
net_frame_extents,
|
||||
net_number_of_desktops,
|
||||
net_current_desktop,
|
||||
net_desktop_names,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user