diff --git a/src/client.c b/src/client.c index ceb713f..39b464f 100644 --- a/src/client.c +++ b/src/client.c @@ -395,6 +395,7 @@ client_manage(Window w, XWindowAttributes *wa) frame_create(c); client_size_hints(c); XChangeWindowAttributes(dpy, c->win, CWEventMask, &at); + XSetWindowBorderWidth(dpy, c->win, 0); /* client win must _not_ has border */ mouse_grabbuttons(c, False); if((rettrans = XGetTransientForHint(dpy, w, &trans) == Success)) for(t = clients; t && t->win != trans; t = t->next); diff --git a/src/config.c b/src/config.c index eaf530e..f2f319f 100644 --- a/src/config.c +++ b/src/config.c @@ -184,10 +184,15 @@ void conf_tag_section(cfg_t *cfg_t) { int i, j, k, l = 0; + Bool grh = False; /* If there is no tag in the conf or more than * MAXTAG (32) print an error and create only one. */ + + printf("---> %s\n", tag_opts[5].name); + deb(tag_opts[5].def.boolean); + conf.tag_round = cfg_getbool(cfg_t, "tag_round"); conf.colors.tagselfg = strdup(alias_to_str(cfg_getstr(cfg_t, "sel_fg"))); conf.colors.tagselbg = getcolor(alias_to_str(cfg_getstr(cfg_t, "sel_bg"))); @@ -272,7 +277,6 @@ conf_keybind_section(cfg_t *cfg_k) keys[i].cmd = (!strdup(alias_to_str((cfg_getstr(cfgtmp, "cmd")))) ? NULL : strdup(alias_to_str(cfg_getstr(cfgtmp, "cmd")))); } - return; } @@ -283,7 +287,6 @@ conf_keybind_section(cfg_t *cfg_k) void init_conf(void) { - char final_path[128]; int ret; sprintf(final_path, "%s/%s", strdup(getenv("HOME")), strdup(FILE_NAME)); diff --git a/src/config_struct.h b/src/config_struct.h index 25d4f29..64929c9 100644 --- a/src/config_struct.h +++ b/src/config_struct.h @@ -35,6 +35,7 @@ #define FILE_NAME ".config/wmfs/wmfsrc" cfg_t *cfg, *cfgtmp; +char final_path[128]; cfg_opt_t misc_opts[] = { @@ -119,12 +120,13 @@ cfg_opt_t tag_opts[] = cfg_opt_t tags_opts[] = { - CFG_BOOL("tag_round", cfg_false, CFGF_NONE), - CFG_STR("occupied_bg", "#003366", CFGF_NONE), - CFG_STR("sel_fg", "#FFFFFF", CFGF_NONE), - CFG_STR("sel_bg", "#354B5C", CFGF_NONE), - CFG_STR("border", "#090909", CFGF_NONE), - CFG_SEC("tag", tag_opts, CFGF_MULTI), + CFG_BOOL("tag_round", cfg_false, CFGF_NONE), + CFG_BOOL("global_resizehint", cfg_false, CFGF_NONE), + CFG_STR("occupied_bg", "#003366", CFGF_NONE), + CFG_STR("sel_fg", "#FFFFFF", CFGF_NONE), + CFG_STR("sel_bg", "#354B5C", CFGF_NONE), + CFG_STR("border", "#090909", CFGF_NONE), + CFG_SEC("tag", tag_opts, CFGF_MULTI), CFG_END() }; diff --git a/src/structs.h b/src/structs.h index 7f25c0d..f8fbda5 100644 --- a/src/structs.h +++ b/src/structs.h @@ -213,7 +213,6 @@ typedef struct int nmouse; } titlebar; Alias alias[256]; - Tag tag[MAXTAG]; Layout layout[NUM_OF_LAYOUT]; int *ntag; bool tag_round; diff --git a/src/tag.c b/src/tag.c index a05bcb1..dc612cf 100644 --- a/src/tag.c +++ b/src/tag.c @@ -28,6 +28,7 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ #include "wmfs.h"