diff options
author | Bert <ber.t@gmx.com> | 2011-01-17 19:50:46 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-17 19:50:46 +0100 |
commit | 47d107edb5069176265852fac96ea0eedbec8d34 (patch) | |
tree | 9205acc82ea7462444d3a304f248957fca149468 /window.c | |
parent | 15603c25cf00a11dbdf238203858d9eab313120c (diff) | |
download | nsxiv-47d107edb5069176265852fac96ea0eedbec8d34.tar.zst |
React to ConfigureNotify
Diffstat (limited to 'window.c')
-rw-r--r-- | window.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -84,3 +84,19 @@ void win_close(win_t *win) { XFreeGC(dpy, gc); XCloseDisplay(dpy); } + +int win_configure(win_t *win, XConfigureEvent *cev) { + int changed; + + if (win == NULL) + return 0; + + changed = win->x != cev->x || win->y != cev->y || + win->w != cev->width || win->h != cev->height; + win->x = cev->x; + win->y = cev->y; + win->w = cev->width; + win->h = cev->height; + win->bw = cev->border_width; + return changed; +} |