]> git.lizzy.rs Git - bspwm.git/blobdiff - bspwm.c
New message: 'list_rules'
[bspwm.git] / bspwm.c
diff --git a/bspwm.c b/bspwm.c
index ea3b0ecd468d583fba5437e32d1a45d89e298d60..9b410cdf178acdf2ba742e2e664b8db40af716e2 100644 (file)
--- a/bspwm.c
+++ b/bspwm.c
@@ -97,7 +97,7 @@ void setup(void)
 
     xcb_ewmh_set_supported(ewmh, default_screen, LENGTH(net_atoms), net_atoms);
 
-    monitor_uid = desktop_uid = client_uid = 0;
+    monitor_uid = desktop_uid = client_uid = rule_uid = 0;
     mon = last_mon = mon_head = mon_tail = NULL;
 
     bool xinerama_is_active = false;
@@ -133,7 +133,7 @@ void setup(void)
     ewmh_update_number_of_desktops();
     ewmh_update_desktop_names();
     ewmh_update_current_desktop();
-    rule_head = make_rule();
+    rule_head = rule_tail = NULL;
     frozen_pointer = make_pointer_state();
     get_pointer_position(&pointer_position);
     last_entered = XCB_NONE;