emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8c6402844e: ; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fi


From: Eli Zaretskii
Subject: master 8c6402844e: ; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.
Date: Thu, 14 Jul 2022 11:57:30 -0400 (EDT)

branch: master
commit 8c6402844ed39c88bc22fb4cc497e700631a1e3c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * src/xterm.c (x_scroll_bar_expose, mark_xterm): Fix last change.
---
 src/xterm.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index ecc00e6bef..94fb0bfa1a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]