]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 14 Jul 2022 15:56:46 +0000 (18:56 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 14 Jul 2022 15:56:46 +0000 (18:56 +0300)
src/xterm.c

index ecc00e6bef28603983788c4c41272b8eca480d37..94fb0bfa1a02ecf02d46c6a7f7209117f01129bf 100644 (file)
@@ -14967,10 +14967,9 @@ x_scroll_bar_expose (struct scroll_bar *bar, const XEvent *event)
 {
 #ifndef HAVE_XDBE
   Window w = bar->x_window;
-  int x, y, width, height;
 #else
   Drawable w = bar->x_drawable;
-#endif
+  int x, y, width, height;
 
   if (event->type == Expose)
     {
@@ -14986,6 +14985,7 @@ x_scroll_bar_expose (struct scroll_bar *bar, const XEvent *event)
       width = event->xgraphicsexpose.width;
       height = event->xgraphicsexpose.height;
     }
+#endif
 
   struct frame *f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window)));
   GC gc = f->output_data.x->normal_gc;
@@ -27939,7 +27939,9 @@ mark_xterm (void)
 #if defined HAVE_XINPUT2 || defined USE_TOOLKIT_SCROLL_BARS \
   || defined HAVE_XRANDR || defined USE_GTK
   struct x_display_info *dpyinfo;
+#if defined HAVE_XINPUT2 || defined USE_TOOLKIT_SCROLL_BARS
   int i;
+#endif
 #endif
 
   if (x_dnd_return_frame_object)