From 796a52c20656342eabaf923d6141d83883689d15 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 24 Aug 2009 23:49:04 +0000 Subject: bring together gathering, calculating and applying of size hints; additionally, respect aspect ratio hints. ok oga@ --- xevents.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'xevents.c') diff --git a/xevents.c b/xevents.c index ce26a56..d4be785 100644 --- a/xevents.c +++ b/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.41 2009/05/18 00:14:19 oga Exp $ + * $Id: xevents.c,v 1.42 2009/08/24 23:49:04 okan Exp $ */ /* @@ -171,12 +171,11 @@ xev_handle_propertynotify(XEvent *ee) { XPropertyEvent *e = &ee->xproperty; struct client_ctx *cc; - long tmp; if ((cc = client_find(e->window)) != NULL) { switch (e->atom) { case XA_WM_NORMAL_HINTS: - XGetWMNormalHints(X_Dpy, cc->win, cc->size, &tmp); + client_getsizehints(cc); break; case XA_WM_NAME: client_setname(cc); -- cgit v1.2.3-2-gb3c3