summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dwb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dwb.c b/src/dwb.c
index ca59c412..f47f696d 100644
--- a/src/dwb.c
+++ b/src/dwb.c
@@ -3212,7 +3212,7 @@ dwb_change_mode(Mode mode, ...)
* */
char buffer[] = { BASIC_MODES(mode) + 48, 0 };
- ScriptSignal sig = { SCRIPTS_WV(dwb.state.fview), SCRIPTS_SIG_META(buffer, CHANGE_MODE, 0) };
+ ScriptSignal sig = { .jsobj = (dwb.state.fview ? CURRENT_VIEW()->script_wv : NULL), SCRIPTS_SIG_META(buffer, CHANGE_MODE, 0) };
if (scripts_emit(&sig))
return STATUS_OK;
}