client_moveresize fix

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
marco candrian 2008-02-28 07:42:16 +01:00 committed by Julien Danjou
parent 914f00f3b8
commit f604d4dbdd
1 changed files with 3 additions and 3 deletions

View File

@ -808,9 +808,9 @@ uicb_client_moveresize(int screen, char *arg)
Client *sel = globalconf.focus->client;
Layout *curlay = layout_get_current(screen);
if(curlay->arrange != layout_floating ||
!sel || !sel->isfloating || sel->isfixed || !arg)
return;
if(!sel || sel->isfixed || !arg ||
(curlay->arrange != layout_floating && !sel->isfloating))
return;
if(sscanf(arg, "%s %s %s %s", x, y, w, h) != 4)
return;