Misc: client_round option
This commit is contained in:
parent
d525e3ace1
commit
9c693212bb
@ -96,7 +96,7 @@ client_get_next(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for(c = sel->next; c && ishide(c, selscreen); c = c->next);
|
for(c = sel->next; c && ishide(c, selscreen); c = c->next);
|
||||||
if(!c)
|
if(!c && conf.client_round)
|
||||||
for(c = clients; c && ishide(c, selscreen); c = c->next);
|
for(c = clients; c && ishide(c, selscreen); c = c->next);
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
@ -117,7 +117,7 @@ client_get_prev(void)
|
|||||||
if(!ishide(d, selscreen))
|
if(!ishide(d, selscreen))
|
||||||
c = d;
|
c = d;
|
||||||
|
|
||||||
if(!c)
|
if(!c && conf.client_round)
|
||||||
for(; d; d = d->next)
|
for(; d; d = d->next)
|
||||||
if(!ishide(d, selscreen))
|
if(!ishide(d, selscreen))
|
||||||
c = d;
|
c = d;
|
||||||
|
|||||||
@ -219,6 +219,7 @@ conf_client_section(char *src)
|
|||||||
/* Client misc */
|
/* Client misc */
|
||||||
cfg_set_sauv(src);
|
cfg_set_sauv(src);
|
||||||
|
|
||||||
|
conf.client_round = get_opt(src, "true", "client_round").bool;
|
||||||
conf.client.borderheight = (get_opt(src, "1", "border_height").num < 1 ? 1 : get_opt(src, "1", "border_height").num);
|
conf.client.borderheight = (get_opt(src, "1", "border_height").num < 1 ? 1 : get_opt(src, "1", "border_height").num);
|
||||||
conf.client.border_shadow = get_opt(src, "false", "border_shadow").bool;
|
conf.client.border_shadow = get_opt(src, "false", "border_shadow").bool;
|
||||||
conf.client.place_at_mouse = get_opt(src, "false", "place_at_mouse").bool;
|
conf.client.place_at_mouse = get_opt(src, "false", "place_at_mouse").bool;
|
||||||
|
|||||||
@ -420,6 +420,7 @@ typedef struct
|
|||||||
Launcher *launcher;
|
Launcher *launcher;
|
||||||
int *ntag;
|
int *ntag;
|
||||||
Bool tag_round;
|
Bool tag_round;
|
||||||
|
Bool client_round;
|
||||||
Bool layout_system; /* Switch: False, Menu: True. */
|
Bool layout_system; /* Switch: False, Menu: True. */
|
||||||
Bool layout_placement; /* Right (normal): False, Left: True. */
|
Bool layout_placement; /* Right (normal): False, Left: True. */
|
||||||
/* Number of... */
|
/* Number of... */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user