chadwm
chadwm copied to clipboard
Fixed window attach at the end for multi monitor setup
Not resetting c->next with multi monitors creates an endless loop and crashes.
Step to reproduce:
- Set config
static const int new_window_attach_on_end = 1; - Open one client in each monitor
- Move one of the clients to the other monitor
- Move back a client to the first window -> Start crashing => ctrl+alt+f3 to kill chadwm
Fix:
Reset the client chained list:
c->next = NULL