module/xwindow: some windows have a zero-length PID property

This commit is contained in:
Daniel Eklöf 2019-01-09 18:40:14 +01:00
parent 128716c8aa
commit 9037aadd04

View file

@ -93,6 +93,11 @@ update_application(struct module *mod)
return; return;
} }
if (xcb_get_property_value_length(r) == 0) {
free(r);
return;
}
uint32_t pid; uint32_t pid;
assert(xcb_get_property_value_length(r) == sizeof(pid)); assert(xcb_get_property_value_length(r) == sizeof(pid));