]> git.sur5r.net Git - i3/i3/commitdiff
property_notify: use NUM_HANDLERS 3366/head
authorOrestis Floros <orestisf1993@gmail.com>
Tue, 21 Aug 2018 18:04:46 +0000 (21:04 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Tue, 21 Aug 2018 18:04:46 +0000 (21:04 +0300)
src/handlers.c

index 38c2caf175d4fc9a38df088030df5fd42b023cc0..2c81939ca5354df4b5bd76be1a1a60e55e7dc0af 100644 (file)
@@ -1441,7 +1441,7 @@ static void property_notify(uint8_t state, xcb_window_t window, xcb_atom_t atom)
     struct property_handler_t *handler = NULL;
     xcb_get_property_reply_t *propr = NULL;
 
-    for (size_t c = 0; c < sizeof(property_handlers) / sizeof(struct property_handler_t); c++) {
+    for (size_t c = 0; c < NUM_HANDLERS; c++) {
         if (property_handlers[c].atom != atom)
             continue;