]> git.lizzy.rs Git - bspwm.git/blobdiff - restore.c
Skip unmapped windows in query_pointer
[bspwm.git] / restore.c
index 58607afe2bafcdc988b8df33913d0f35be35ce86..880d52362b747846dd607298caa5ba8f1906d3ab 100644 (file)
--- a/restore.c
+++ b/restore.c
@@ -338,10 +338,10 @@ node_t *restore_node(jsmntok_t **t, char *json)
                        RESTORE_ANY(splitType, &n->split_type, parse_split_type)
                        RESTORE_DOUBLE(splitRatio, &n->split_ratio)
                        RESTORE_INT(birthRotation, &n->birth_rotation)
-                       RESTORE_ANY(vacant, &n->vacant, parse_bool)
-                       RESTORE_ANY(sticky, &n->sticky, parse_bool)
-                       RESTORE_ANY(private, &n->private, parse_bool)
-                       RESTORE_ANY(locked, &n->locked, parse_bool)
+                       RESTORE_BOOL(vacant, &n->vacant)
+                       RESTORE_BOOL(sticky, &n->sticky)
+                       RESTORE_BOOL(private, &n->private)
+                       RESTORE_BOOL(locked, &n->locked)
                        } else if (keyeq("presel", *t, json)) {
                                (*t)++;
                                n->presel = restore_presel(t, json);
@@ -429,6 +429,7 @@ client_t *restore_client(jsmntok_t **t, char *json)
                        RESTORE_ANY(lastLayer, &c->last_layer, parse_stack_layer)
                        RESTORE_UINT(borderWidth, &c->border_width)
                        RESTORE_BOOL(urgent, &c->urgent)
+                       RESTORE_BOOL(visible, &c->visible)
                        RESTORE_BOOL(icccmFocus, &c->icccm_focus)
                        RESTORE_BOOL(icccmInput, &c->icccm_input)
                        RESTORE_USINT(minWidth, &c->min_width)