dwm

Fork of suckless' dwm with my personal patches
git clone https://git.instinctive.eu/dwm.git
Log | Files | Refs | README | LICENSE

commit 8c0cf76a6fa37d29d74e7ddf1f09c688d470d650
parent bc1d4e6310572e1851a614bcac9c4262b838cc31
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date:   Fri,  3 May 2024 17:08:57 +0200

[nat] fix focusurgent corner cases

Diffstat:
Mfocusurgent.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/focusurgent.c b/focusurgent.c @@ -6,14 +6,15 @@ focusurgent(const Arg *arg) { for(m=mons; m; m=m->next){ for(c=m->clients; c && !c->isurgent; c=c->next); if(c) { - unfocus(selmon->sel, 0); + if (selmon->sel) unfocus(selmon->sel, 0); selmon = m; for(i=0; i < LENGTH(tags) && !((1 << i) & c->tags); i++); if(i < LENGTH(tags)) { const Arg a = {.ui = 1 << i}; view(&a); focus(c); - warp(c); + restack(c->mon); + return; } } }