use get_current_layout()
This commit is contained in:
parent
2ca938e18e
commit
e0099da269
12
client.c
12
client.c
|
@ -847,17 +847,15 @@ uicb_client_moveresize(int screen, char *arg)
|
||||||
Window dummy;
|
Window dummy;
|
||||||
Area area;
|
Area area;
|
||||||
Client *sel = globalconf.focus->client;
|
Client *sel = globalconf.focus->client;
|
||||||
Tag **curtags = tags_get_current(screen);
|
Layout *curlay = get_current_layout(screen);
|
||||||
|
|
||||||
if(curtags[0]->layout->arrange != layout_floating)
|
if(curlay->arrange != layout_floating ||
|
||||||
if(!sel || !sel->isfloating || sel->isfixed || !arg)
|
!sel || !sel->isfloating || sel->isfixed || !arg)
|
||||||
{
|
|
||||||
p_delete(&curtags);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
p_delete(&curtags);
|
|
||||||
if(sscanf(arg, "%s %s %s %s", x, y, w, h) != 4)
|
if(sscanf(arg, "%s %s %s %s", x, y, w, h) != 4)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
area.x = (int) compute_new_value_from_arg(x, sel->geometry.x);
|
area.x = (int) compute_new_value_from_arg(x, sel->geometry.x);
|
||||||
area.y = (int) compute_new_value_from_arg(y, sel->geometry.y);
|
area.y = (int) compute_new_value_from_arg(y, sel->geometry.y);
|
||||||
area.width = (int) compute_new_value_from_arg(w, sel->geometry.width);
|
area.width = (int) compute_new_value_from_arg(w, sel->geometry.width);
|
||||||
|
|
Loading…
Reference in New Issue