where window_id is compared.
+2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * xterm.c (x_window_to_scroll_bar): Move check of display to
+ where window_id is compared.
+
2003-11-17 Kim F. Storm <storm@cua.dk>
* dispextern.h (struct it): New member first_vpos.
if (! GC_FRAMEP (frame))
abort ();
- if (FRAME_X_DISPLAY (XFRAME (frame)) != display)
- continue;
-
/* Scan this frame's scroll bar list for a scroll bar with the
right window ID. */
condemned = FRAME_CONDEMNED_SCROLL_BARS (XFRAME (frame));
condemned = Qnil,
! GC_NILP (bar));
bar = XSCROLL_BAR (bar)->next)
- if (SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)) == window_id)
+ if (SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)) == window_id &&
+ FRAME_X_DISPLAY (XFRAME (frame)) == display)
return XSCROLL_BAR (bar);
}