diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 16:12:52 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-04-15 16:12:52 +0200 |
| commit | 91fe87974e8c0d02b230fb1218905920154f5af5 (patch) | |
| tree | be8b95a24da5fe23edc2a572a5000249a2f7d703 /switcher.c | |
| parent | c7bdedb36bde9e26cc0ce4e58a9ce7e425f19ac2 (diff) | |
| download | glitch-91fe87974e8c0d02b230fb1218905920154f5af5.tar.gz | |
Fix XError handling and Display Lock on Event handling
Diffstat (limited to 'switcher.c')
| -rw-r--r-- | switcher.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -109,7 +109,7 @@ void cycle_active_window(const Arg *arg) { // We grab it on the root window. XGrabKeyboard(wm.dpy, wm.root, True, GrabModeAsync, GrabModeAsync, CurrentTime); - // Count clients + // Count clients - allocate extra to handle new windows mapping during this process int count = 0; Client *c = wm.clients; while (c) { @@ -122,7 +122,7 @@ void cycle_active_window(const Arg *arg) { return; } - wm.cycle_clients = malloc(sizeof(Window) * count); + wm.cycle_clients = malloc(sizeof(Window) * (count + 10)); wm.cycle_count = 0; wm.active_cycle_index = 0; |
