aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32term.c2
-rw-r--r--src/xterm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 4d5f2e7c3cc..7dbeda7a716 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3690,7 +3690,7 @@ x_window_to_scroll_bar (Window window_id, int type)
3690 ! NILP (bar)); 3690 ! NILP (bar));
3691 bar = XSCROLL_BAR (bar)->next) 3691 bar = XSCROLL_BAR (bar)->next)
3692 if (SCROLL_BAR_W32_WINDOW (XSCROLL_BAR (bar)) == window_id 3692 if (SCROLL_BAR_W32_WINDOW (XSCROLL_BAR (bar)) == window_id
3693 && (type = 2 3693 && (type == 2
3694 || (type == 1 && XSCROLL_BAR (bar)->horizontal) 3694 || (type == 1 && XSCROLL_BAR (bar)->horizontal)
3695 || (type == 0 && !XSCROLL_BAR (bar)->horizontal))) 3695 || (type == 0 && !XSCROLL_BAR (bar)->horizontal)))
3696 return XSCROLL_BAR (bar); 3696 return XSCROLL_BAR (bar);
diff --git a/src/xterm.c b/src/xterm.c
index f90d6713b02..2f830afe61b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5343,7 +5343,7 @@ x_window_to_scroll_bar (Display *display, Window window_id, int type)
5343 bar = XSCROLL_BAR (bar)->next) 5343 bar = XSCROLL_BAR (bar)->next)
5344 if (XSCROLL_BAR (bar)->x_window == window_id 5344 if (XSCROLL_BAR (bar)->x_window == window_id
5345 && FRAME_X_DISPLAY (XFRAME (frame)) == display 5345 && FRAME_X_DISPLAY (XFRAME (frame)) == display
5346 && (type = 2 5346 && (type == 2
5347 || (type == 1 && XSCROLL_BAR (bar)->horizontal) 5347 || (type == 1 && XSCROLL_BAR (bar)->horizontal)
5348 || (type == 0 && !XSCROLL_BAR (bar)->horizontal))) 5348 || (type == 0 && !XSCROLL_BAR (bar)->horizontal)))
5349 return XSCROLL_BAR (bar); 5349 return XSCROLL_BAR (bar);