shod

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 406f38721e993556ef8bf4024ac9b8e89072c09b
parent 083047c136c4909f9599cce9cffe5c10fb29f02c
Author: Lucas de Sena <lucas@seninha.org>
Date:   Fri,  7 Jul 2023 14:06:27 -0300

check if wm.focused is not NULL

Diffstat:
Mxmenu.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/xmenu.c b/xmenu.c @@ -184,7 +184,9 @@ managemenu(struct Tab *tab, struct Monitor *mon, int desk, Window win, Window le menuplace(mon, menu); /* this will set menu->mon for us */ menudecorate(menu, 0); menuraise(menu); - if (istabformenu(wm.focused->selcol->selrow->seltab, menu)) { + if (menu->leader == None || + (wm.focused != NULL && + istabformenu(wm.focused->selcol->selrow->seltab, menu))) { XMapWindow(dpy, menu->frame); } }