Skip to content

Commit

Permalink
Fixed bad access when accesing killed clients? maybe. (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerjenigeUberMensch authored Jul 7, 2024
1 parent 2a416e6 commit 4b51928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ focus(Client *c)
{
Monitor *selmon = _wm.selmon;
Desktop *desk = selmon->desksel;
if(!c || !ISVISIBLE(c))
if(!c || !ISVISIBLE(c) || NEVERHOLDFOCUS(c))
{ for(c = startfocus(desk); c && !ISVISIBLE(c) && !KEEPFOCUS(c); c = nextfocus(c));
}
if(desk->sel && desk->sel != c)
Expand Down

0 comments on commit 4b51928

Please sign in to comment.