-/* 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>
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;
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) {
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,