shod

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

commit 083047c136c4909f9599cce9cffe5c10fb29f02c
parent 87b2b5ba9d3f28e0cf2c139f25c08017a118bf46
Author: Lucas de Sena <lucas@seninha.org>
Date:   Thu,  6 Jul 2023 22:13:25 -0300

do not map menu when its tab is not focused

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); - XMapWindow(dpy, menu->frame); + if (istabformenu(wm.focused->selcol->selrow->seltab, menu)) { + XMapWindow(dpy, menu->frame); + } } /* delete menu; return whether menu was deleted */