shod

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

commit 6fb35ab51b937f89d6b0fff7a114153074e1c699
parent fbfae8c945d25f1424687def6744be3c45b83dd9
Author: seninha <lucas@seninha.org>
Date:   Tue, 23 Nov 2021 20:39:49 -0300

fix focus loss on shaded containers

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

diff --git a/shod.c b/shod.c @@ -3482,7 +3482,10 @@ tabfocus(struct Tab *t, int gotodesk) if (t->row->col->maxrow != NULL && t->row->col->maxrow != t->row) rowstack(t->row->col, t->row); XRaiseWindow(dpy, t->frame); - if (t->ds != NULL) { + if (c->isshaded) { + XSetInputFocus(dpy, c->frame, RevertToParent, CurrentTime); + ewmhsetactivewindow(t->win); + } else if (t->ds != NULL) { XRaiseWindow(dpy, t->ds->frame); XSetInputFocus(dpy, t->ds->win, RevertToParent, CurrentTime); ewmhsetactivewindow(t->ds->win);