fix malloc error: monitor clients is now initialized to NULL

This commit is contained in:
2022-09-19 11:13:20 +02:00
parent 2e1d6eb6f6
commit ed673097b6
2 changed files with 15 additions and 9 deletions

View File

@ -139,7 +139,6 @@ void wm_keypress_handler(Wm *wm, XKeyPressedEvent e)
for (int i = 0; i < wm->cfg_kb_count; i++) {
k = wm->cfg_keybinds[i];
DEBUG_PRINT("Keybind keysym: %s\n", XKeysymToString(k.keysym));
if (k.mask == e.state && k.keysym == XLookupKeysym(&e, 0))
{
(*k.func)(wm, &k.args);
@ -151,6 +150,9 @@ void wm_maprequest_handler(Wm *wm, XMapRequestEvent e)
{
DEBUG_PRINT("MapRequest event\n")
if (e.window == wm->root.window)
fprintf(stderr, "%s e.window was root\n", __func__);
Client *c;
c = wm_client_find(wm, e.window);