commit f3e881ddab939a8b274340b69c590caf90dcfbc6
parent fa37544155fd2518ef1e68acd8b9e669098d7437
Author: phillbush <phillbush@cock.li>
Date: Mon, 20 Sep 2021 00:20:11 -0300
fix managedialog
the dialog should be focused after being mapped
Diffstat:
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/shod.c b/shod.c
@@ -3634,9 +3634,6 @@ decorate(struct Winres *res)
static void
managedialog(struct Tab *t, struct Dialog *d)
{
- struct Container *c;
-
- c = t->row->col->c;
d->t = t;
XReparentWindow(dpy, d->frame, t->frame, 0, 0);
if (t->ds)
@@ -3646,9 +3643,9 @@ managedialog(struct Tab *t, struct Dialog *d)
icccmwmstate(d->win, NormalState);
dialogcalcsize(d);
dialogmoveresize(d);
+ XMapRaised(dpy, d->frame);
if (wm.focused != NULL && wm.focused->selcol->selrow->seltab == t)
tabfocus(t, 0);
- XMapRaised(dpy, d->frame);
ewmhsetclients();
ewmhsetclientsstacking();
}