This commit is contained in:
John Sennesael 2015-11-02 15:14:32 -06:00 committed by Mathias Gumz
parent 3c06e9e93f
commit 22866c4d30

View file

@ -73,7 +73,7 @@ int main(int argc, char **argv) {
if (strcmp(cmd, "result") == 0) { if (strcmp(cmd, "result") == 0) {
XTextProperty text_prop; XTextProperty text_prop;
if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0 if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
&& text_prop.value > 0 && text_prop.value != 0
&& text_prop.nitems > 0) { && text_prop.nitems > 0) {
printf("%s", text_prop.value); printf("%s", text_prop.value);