event: Fix configure window event (add c->ogeo.* to the change)

This commit is contained in:
Martin Duquesnoy 2009-01-02 06:25:05 +01:00
parent 24e0212c3b
commit 9bd68ad962
2 changed files with 4 additions and 5 deletions

View File

@ -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) */

View File

@ -503,7 +503,5 @@ uicb_togglemax(uicb_t cmd)
tags[selscreen][seltag[selscreen]].layout.func();
}
return;
}