client: Add XSetWindowBorderWidth in client_manage for remove, if there is border, the client->win border.
This commit is contained in:
parent
05badba757
commit
30c48c858e
@ -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);
|
||||
|
||||
@ -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));
|
||||
|
||||
@ -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()
|
||||
};
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user