From 16171797a3e7258dea33e664e7adea61a0eab14c Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sat, 13 Jun 2009 15:50:10 +0200 Subject: [PATCH] Client: client_set_wanted_tag() -> set xch to { 0 } so fix possibly segfault. --- src/client.c | 3 ++- src/ewmh.c | 1 + src/launcher.c | 2 +- src/structs.h | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index a38c736..067a444 100644 --- a/src/client.c +++ b/src/client.c @@ -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); diff --git a/src/ewmh.c b/src/ewmh.c index a078043..8638d4a 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -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"); diff --git a/src/launcher.c b/src/launcher.c index 4e3b5c4..e6db02c 100644 --- a/src/launcher.c +++ b/src/launcher.c @@ -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); diff --git a/src/structs.h b/src/structs.h index 06bed57..d971b4a 100644 --- a/src/structs.h +++ b/src/structs.h @@ -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,