Merge pull request #3366 from orestisf1993/NUM_HANDLERS
property_notify: use NUM_HANDLERS
This commit is contained in:
commit
e906cdad66
|
@ -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;
|
struct property_handler_t *handler = NULL;
|
||||||
xcb_get_property_reply_t *propr = 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)
|
if (property_handlers[c].atom != atom)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue