aboutsummaryrefslogtreecommitdiff
path: root/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'events.c')
-rw-r--r--events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/events.c b/events.c
index ad41de1..867b147 100644
--- a/events.c
+++ b/events.c
@@ -30,7 +30,7 @@ void on_expose(app_t *app, XEvent *ev) {
}
void on_configurenotify(app_t *app, XEvent *ev) {
- if (app == NULL || ev == NULL)
+ if (!app || !ev)
return;
win_configure(&app->win, &ev->xconfigure);
@@ -40,7 +40,7 @@ void on_keypress(app_t *app, XEvent *ev) {
KeySym keysym;
XKeyEvent *kev;
- if (app == NULL || ev == NULL)
+ if (!app || !ev)
return;
kev = &ev->xkey;