mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 09:51:38 -05:00
don't crash when apps do weird things (i am talking to you thunderbird).
doesn't fix the underlying issues though but at least it can be worked around by either switching workspaces or kill -1 scrotwm
This commit is contained in:
parent
e218053b30
commit
5b36603cb4
1 changed files with 3 additions and 3 deletions
|
@ -1713,7 +1713,7 @@ void
|
|||
unfocus_win(struct ws_win *win)
|
||||
{
|
||||
XEvent cne;
|
||||
Window none = None;
|
||||
Window none = None;
|
||||
|
||||
DNPRINTF(SWM_D_FOCUS, "unfocus_win: id: %lu\n", WINID(win));
|
||||
|
||||
|
@ -1723,7 +1723,7 @@ unfocus_win(struct ws_win *win)
|
|||
return;
|
||||
|
||||
if (validate_ws(win->ws))
|
||||
abort(); /* XXX replace with return at some point */
|
||||
return; /* XXX this gets hit with thunderbird, needs fixing */
|
||||
|
||||
if (win->ws->r == NULL)
|
||||
return;
|
||||
|
@ -1791,7 +1791,7 @@ focus_win(struct ws_win *win)
|
|||
return;
|
||||
|
||||
if (validate_ws(win->ws))
|
||||
abort(); /* XXX replace with return at some point */
|
||||
return; /* XXX this gets hit with thunderbird, needs fixing */
|
||||
|
||||
if (validate_win(win)) {
|
||||
kill_refs(win);
|
||||
|
|
Loading…
Add table
Reference in a new issue