mirror of https://github.com/0intro/wmii
don't try to create a new column if there is only one client in the current one (prevents flicker on repeated sendto prev/next)
This commit is contained in:
parent
325bd1be5e
commit
9dc61b3f67
|
@ -547,7 +547,9 @@ send2area_client(Client *c, char *arg)
|
|||
return;
|
||||
|
||||
if(!strncmp(arg, "prev", 5) && i) {
|
||||
if(i == 1) {
|
||||
if(i > 1)
|
||||
to = v->area.data[i - 1];
|
||||
else if(a->frame.size > 1) {
|
||||
Area *p, *n;
|
||||
unsigned int j;
|
||||
p = to = alloc_area(v);
|
||||
|
@ -559,15 +561,17 @@ send2area_client(Client *c, char *arg)
|
|||
arrange_view(v, True);
|
||||
}
|
||||
else
|
||||
to = v->area.data[i - 1];
|
||||
return;
|
||||
}
|
||||
else if(!strncmp(arg, "next", 5) && i) {
|
||||
if(i < v->area.size - 1)
|
||||
to = v->area.data[i + 1];
|
||||
else {
|
||||
else if(a->frame.size > 1) {
|
||||
to = alloc_area(v);
|
||||
arrange_view(v, True);
|
||||
}
|
||||
else
|
||||
return;
|
||||
}
|
||||
else if(!strncmp(arg, "toggle", 7)) {
|
||||
if(i)
|
||||
|
|
Loading…
Reference in New Issue