From af90a4547167e9997ed2bd4a86b055c503c31462 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 17 Mar 2022 08:56:42 +0200 Subject: [PATCH] Fix compilation error of xterm.c * src/xterm.c (x_dnd_begin_drag_and_drop): Use current_count only if defined. Reported by Tassilo Horn . --- src/xterm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 543046ca00b..1b0b3ef793f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -1119,7 +1119,9 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, Atom xaction, if (return_frame_p) x_dnd_return_frame = 1; +#ifdef USE_GTK current_count = 0; +#endif while (x_dnd_in_progress) { -- 2.39.5