]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a keyboard.c no-X compilation warning
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 22 Mar 2022 20:09:16 +0000 (21:09 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 22 Mar 2022 20:09:16 +0000 (21:09 +0100)
* src/keyboard.c (make_lispy_position): Fix compilation warning in
a --without-x build.

src/keyboard.c

index 218f9a86c86f6e865bf8d79fe605a814366de9a8..8b451d834d1a79b796356a4cea5b22467844e5f9 100644 (file)
@@ -5247,12 +5247,12 @@ make_lispy_position (struct frame *f, Lisp_Object x, Lisp_Object y,
   Lisp_Object window_or_frame = f
     ? window_from_coordinates (f, mx, my, &part, true, true)
     : Qnil;
+#ifdef HAVE_WINDOW_SYSTEM
   bool tool_bar_p = false;
   bool menu_bar_p = false;
 
   /* Report mouse events on the tab bar and (on GUI frames) on the
      tool bar.  */
-#ifdef HAVE_WINDOW_SYSTEM
   if ((WINDOWP (f->tab_bar_window)
        && EQ (window_or_frame, f->tab_bar_window))
 #ifndef HAVE_EXT_TOOL_BAR