[mutter] xprops: Make sure that properties that failed to fetch are ignored



commit 5d360a9bce5dcc0d59631d9d7adb39b91164b66c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jun 23 11:47:38 2015 -0700

    xprops: Make sure that properties that failed to fetch are ignored

 src/x11/xprops.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/x11/xprops.c b/src/x11/xprops.c
index d5934a4..7b28cc8 100644
--- a/src/x11/xprops.c
+++ b/src/x11/xprops.c
@@ -1154,7 +1154,10 @@ meta_prop_get_values (MetaDisplay   *display,
       results.format = 0;
 
       if (!async_get_property_finish (xcb_conn, tasks[i], &results))
-        goto next;
+        {
+          values[i].type = META_PROP_VALUE_INVALID;
+          goto next;
+        }
 
       switch (values[i].type)
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]