]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation error of xterm.c
authorEli Zaretskii <eliz@gnu.org>
Thu, 17 Mar 2022 06:56:42 +0000 (08:56 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 17 Mar 2022 06:56:42 +0000 (08:56 +0200)
* src/xterm.c (x_dnd_begin_drag_and_drop): Use current_count only
if defined.  Reported by Tassilo Horn <tsdh@gnu.org>.

src/xterm.c

index 543046ca00ba4cac7c1c719e1cdabaaeee40ac20..1b0b3ef793fbf5ec25cdb1b1ad09ff14ddbbd0f0 100644 (file)
@@ -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)
     {