]> git.lizzy.rs Git - bspwm.git/blobdiff - restore.c
Loop example: fix indentation
[bspwm.git] / restore.c
index 0d54e735b4b3f4903010654f1fee74764b0f848d..6ae526ffd0aca9dbf6f78649fa8cae01de87d7cc 100644 (file)
--- a/restore.c
+++ b/restore.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, Bastien Dejean
+/* Copyright (c) 2012, Bastien Dejean
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those
- * of the authors and should not be interpreted as representing official policies,
- * either expressed or implied, of the FreeBSD Project.
  */
 
 #include <ctype.h>
@@ -84,7 +80,7 @@ void restore_tree(char *file_path)
                        m->left_padding = left;
                        if (end != 0)
                                mon = m;
-               } else if (level == 2) {
+               } else if (level == 1) {
                        if (m == NULL)
                                continue;
                        int wg, top, right, bottom, left;
@@ -115,7 +111,7 @@ void restore_tree(char *file_path)
                        if (m == NULL || d == NULL)
                                continue;
                        node_t *birth = make_node();
-                       if (level == 4) {
+                       if (level == 2) {
                                empty_desktop(d);
                                d->root = birth;
                        } else if (n != NULL) {
@@ -141,7 +137,7 @@ void restore_tree(char *file_path)
                                else if (st == 'V')
                                        n->split_type = TYPE_VERTICAL;
                        } else {
-                               client_t *c = make_client(XCB_NONE);
+                               client_t *c = make_client(XCB_NONE, d->border_width);
                                num_clients++;
                                char floating, pseudo_tiled, fullscreen, urgent, locked, sticky, private, sd, sm, end = 0;
                                sscanf(line + level, "%c %s %s %X %u %hux%hu%hi%hi %c %c%c%c%c%c%c%c%c %c", &br,