fix malloc error: monitor clients is now initialized to NULL
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user