Skip to content

Commit

Permalink
fix managedialog
Browse files Browse the repository at this point in the history
the dialog should be focused after being mapped
  • Loading branch information
phillbush committed Sep 20, 2021
1 parent fa37544 commit f3e881d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions shod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
}
Expand Down

0 comments on commit f3e881d

Please sign in to comment.