From 1f2958ba92c3be56e68d81e4ad97d2356044a205 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan <fourdan.olivier@wanadoo.fr> Date: Thu, 5 Sep 2002 20:26:03 +0000 Subject: [PATCH] *** empty log message *** (Old svn revision: 10544) --- src/client.c | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git a/src/client.c b/src/client.c index 5d64e83e5..ee9826bd7 100644 --- a/src/client.c +++ b/src/client.c @@ -1311,26 +1311,21 @@ static void _clientConfigure(Client * c, XWindowChanges * wc, int mask) DBG("entering _clientConfigure (recursive)\n"); DBG("configuring (recursive) client \"%s\" (%#lx), layer %i\n", c->name, c->window, c->win_layer); - if (mask & (CWX | CWY | CWWidth | CWHeight)) + if(mask & CWX) { - if(mask & CWX) - { - c->x = wc->x; - } - if(mask & CWY) - { - c->y = wc->y; - } - if(mask & CWWidth) - { - clientSetWidth(c, wc->width); - } - if(mask & CWHeight) - { - clientSetHeight(c, wc->height); - } - /* Prevent arbitrary moves that could hide the title or the window completely */ - clientConstraintPos(c); + c->x = wc->x; + } + if(mask & CWY) + { + c->y = wc->y; + } + if(mask & CWWidth) + { + clientSetWidth(c, wc->width); + } + if(mask & CWHeight) + { + clientSetHeight(c, wc->height); } if(mask & CWBorderWidth) { -- GitLab