bring together gathering, calculating and applying of size hints;

additionally, respect aspect ratio hints.

ok oga@
This commit is contained in:
okan
2009-08-24 23:49:04 +00:00
parent 09d88f4a18
commit 028a1778db
4 changed files with 100 additions and 34 deletions

View File

@@ -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);