From e0099da2691ff80a24ff80ffc335bd6fefd46a8a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 12 Feb 2008 10:08:16 +0100 Subject: [PATCH] use get_current_layout() --- client.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/client.c b/client.c index 3908b8ecc..d49d7bdca 100644 --- a/client.c +++ b/client.c @@ -847,17 +847,15 @@ uicb_client_moveresize(int screen, char *arg) Window dummy; Area area; 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(!sel || !sel->isfloating || sel->isfixed || !arg) - { - p_delete(&curtags); + if(curlay->arrange != layout_floating || + !sel || !sel->isfloating || sel->isfixed || !arg) return; - } - p_delete(&curtags); + if(sscanf(arg, "%s %s %s %s", x, y, w, h) != 4) return; + 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.width = (int) compute_new_value_from_arg(w, sel->geometry.width);