mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
re-use geom struct in client_ctx (saved)geometry.
This commit is contained in:
12
xevents.c
12
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);
|
||||
|
||||
Reference in New Issue
Block a user