0001-fixes-bug-1138.patch 935 B

12345678910111213141516171819202122232425
  1. From 22866c4d30f5b289c429c5ca88d800200db4fc4f Mon Sep 17 00:00:00 2001
  2. From: John Sennesael <john@aminking.com>
  3. Date: Mon, 2 Nov 2015 15:14:32 -0600
  4. Subject: [PATCH] fixes bug #1138
  5. [Retrieved from:
  6. https://github.com/fluxbox/fluxbox/commit/22866c4d30f5b289c429c5ca88d800200db4fc4f]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. ---
  9. util/fluxbox-remote.cc | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/util/fluxbox-remote.cc b/util/fluxbox-remote.cc
  12. index 59852e6a..504015b5 100644
  13. --- a/util/fluxbox-remote.cc
  14. +++ b/util/fluxbox-remote.cc
  15. @@ -73,7 +73,7 @@ int main(int argc, char **argv) {
  16. if (strcmp(cmd, "result") == 0) {
  17. XTextProperty text_prop;
  18. if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
  19. - && text_prop.value > 0
  20. + && text_prop.value != 0
  21. && text_prop.nitems > 0) {
  22. printf("%s", text_prop.value);