summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2023-12-28 03:12:27 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2023-12-28 03:12:27 +0000
commit4266d3efc89cdf7d1af907677361caa24b58c9eb (patch)
tree0b5f22218bb95c2e007653e9de9fdde93a18fc26
parent605bf21ff225c68d21577a94d423e9ec16158cdb (diff)
Assignment should be inside SIXEL.
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 9b0c9306..1e36b5ce 100644
--- a/input.c
+++ b/input.c
@@ -2293,7 +2293,6 @@ input_dcs_dispatch(struct input_ctx *ictx)
if (wp == NULL)
return (0);
- w = wp->window;
if (ictx->flags & INPUT_DISCARD) {
log_debug("%s: %zu bytes (discard)", __func__, len);
@@ -2301,6 +2300,7 @@ input_dcs_dispatch(struct input_ctx *ictx)
}
#ifdef ENABLE_SIXEL
+ w = wp->window;
if (buf[0] == 'q') {
si = sixel_parse(buf, len, w->xpixel, w->ypixel);
if (si != NULL)