From 9bd68ad962cfb49a37f36bd2dcd4c4c86af1b062 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 2 Jan 2009 06:25:05 +0100 Subject: [PATCH] event: Fix configure window event (add c->ogeo.* to the change) --- src/event.c | 7 ++++--- src/layout.c | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/event.c b/src/event.c index e29e9f0..f6c8398 100644 --- a/src/event.c +++ b/src/event.c @@ -118,7 +118,7 @@ clientmessageevent(XClientMessageEvent *ev) /* Manage _NET_ACTIVE_WINDOW */ else if(mess_t == net_active_window) - if((c = client_gb_win((Window)ev->data.l[0]))) + if((c = client_gb_win(ev->window))) client_focus(c); } @@ -180,9 +180,10 @@ configureevent(XEvent *ev) if(win_at.width != ev_at.width || win_at.height != ev_at.height) { - c->geo.width = geo.width = ev->xconfigure.width; - c->geo.height = geo.height = ev->xconfigure.height; + c->ogeo.width = c->geo.width = geo.width = ev->xconfigure.width; + c->ogeo.height = c->geo.height = geo.height = ev->xconfigure.height; frame_moveresize(c, geo); + client_moveresize(c, c->geo, False); } /* Win config (re-adjust it with the frame) */ diff --git a/src/layout.c b/src/layout.c index 9388878..111f116 100644 --- a/src/layout.c +++ b/src/layout.c @@ -503,7 +503,5 @@ uicb_togglemax(uicb_t cmd) tags[selscreen][seltag[selscreen]].layout.func(); } - - return; }