mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-25 05:15:41 +02:00
module/xwindow: some windows have a zero-length PID property
This commit is contained in:
parent
128716c8aa
commit
9037aadd04
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue