Fix compilation warning because of missing braces

next
Michael Stapelberg 2009-09-10 16:29:23 +02:00
parent 9f02fb7a3a
commit ff1ae52e6b
1 changed files with 3 additions and 2 deletions

View 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);