From: Michael Stapelberg Date: Thu, 10 Sep 2009 14:29:23 +0000 (+0200) Subject: Fix compilation warning because of missing braces X-Git-Tag: 3.d~102 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff1ae52e6bc2ac8694e3cd401f8c4a2430c13364;p=i3%2Fi3 Fix compilation warning because of missing braces --- diff --git a/src/handlers.c b/src/handlers.c index 3d7f4f05..f8e79bc9 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -1115,12 +1115,13 @@ int handle_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t } xcb_wm_hints_t hints; - if (reply != NULL) + if (reply != NULL) { if (!xcb_get_wm_hints_from_reply(&hints, reply)) return 1; - else + } else { if (!xcb_get_wm_hints_reply(conn, xcb_get_wm_hints_unchecked(conn, client->child), &hints, NULL)) return 1; + } /* Update the flag on the client directly */ client->urgent = (xcb_wm_hints_get_urgency(&hints) != 0);