Skip to content

Commit

Permalink
Wait: don't run until windows are captured
Browse files Browse the repository at this point in the history
When Fvwm starts up, if a Wait command is used outside of a function,
unpredictable results can happen.

Try and guard against that.

Fixes #590
  • Loading branch information
ThomasAdam committed Jul 20, 2021
1 parent aa49085 commit 6e8f66a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fvwm/builtins.c
Original file line number Diff line number Diff line change
Expand Up @@ -2617,6 +2617,9 @@ void CMD_Wait(F_CMD_ARGS)
char *wait_string, *rest;
FvwmWindow *t;

if (!Scr.flags.are_windows_captured)
return;

/* try to get a single token */
rest = GetNextToken(action, &wait_string);
if (wait_string)
Expand Down

0 comments on commit 6e8f66a

Please sign in to comment.