diff options
Diffstat (limited to 'xevents.c')
-rw-r--r-- | xevents.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xevents.c b/xevents.c index fad3cd1..eddf4fe 100644 --- a/xevents.c +++ b/xevents.c @@ -141,9 +141,9 @@ xev_handle_configurerequest(XEvent *ee) sc = cc->sc; if (e->value_mask & CWWidth) - cc->geom.width = e->width; + cc->geom.w = e->width; if (e->value_mask & CWHeight) - cc->geom.height = e->height; + cc->geom.h = e->height; if (e->value_mask & CWX) cc->geom.x = e->x; if (e->value_mask & CWY) @@ -151,16 +151,16 @@ xev_handle_configurerequest(XEvent *ee) if (e->value_mask & CWBorderWidth) wc.border_width = e->border_width; - if (cc->geom.x == 0 && cc->geom.width >= sc->view.w) + if (cc->geom.x == 0 && cc->geom.w >= sc->view.w) cc->geom.x -= cc->bwidth; - if (cc->geom.y == 0 && cc->geom.height >= sc->view.h) + if (cc->geom.y == 0 && cc->geom.h >= sc->view.h) cc->geom.y -= cc->bwidth; wc.x = cc->geom.x; wc.y = cc->geom.y; - wc.width = cc->geom.width; - wc.height = cc->geom.height; + wc.width = cc->geom.w; + wc.height = cc->geom.h; wc.border_width = cc->bwidth; XConfigureWindow(X_Dpy, cc->win, e->value_mask, &wc); |