aboutsummaryrefslogtreecommitdiffstats
path: root/events.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-17 19:50:46 +0100
committerBert <ber.t@gmx.com>2011-01-17 19:50:46 +0100
commit47d107edb5069176265852fac96ea0eedbec8d34 (patch)
tree9205acc82ea7462444d3a304f248957fca149468 /events.c
parent15603c25cf00a11dbdf238203858d9eab313120c (diff)
downloadnsxiv-47d107edb5069176265852fac96ea0eedbec8d34.tar.zst
React to ConfigureNotify
Diffstat (limited to 'events.c')
-rw-r--r--events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/events.c b/events.c
index ccc5f2e..45a9474 100644
--- a/events.c
+++ b/events.c
@@ -30,6 +30,10 @@ void on_expose(app_t *app, XEvent *ev) {
}
void on_configurenotify(app_t *app, XEvent *ev) {
+ if (app == NULL || ev == NULL)
+ return;
+
+ win_configure(&app->win, &ev->xconfigure);
}
void on_keypress(app_t *app, XEvent *ev) {