]> git.sur5r.net Git - i3/i3/commitdiff
Fix compilation warning because of missing braces
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Sep 2009 14:29:23 +0000 (16:29 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Sep 2009 14:29:23 +0000 (16:29 +0200)
src/handlers.c

index 3d7f4f056b507c09314d2286fe86cdeacd7bdfe9..f8e79bc92342da01e5f0e747789063433f3cff35 100644 (file)
@@ -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);