Mercurial > emacs
comparison src/xterm.c @ 53083:bf86de5f6d07
* xterm.c (x_window_to_scroll_bar): Move check of display to
where window_id is compared.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Mon, 17 Nov 2003 06:06:24 +0000 |
parents | 1218a42792ea |
children | 4250e7e26247 9a1b69cfa7be |
comparison
equal
deleted
inserted
replaced
53082:1b62d2b8774f | 53083:bf86de5f6d07 |
---|---|
3875 frame = XCAR (tail); | 3875 frame = XCAR (tail); |
3876 /* All elements of Vframe_list should be frames. */ | 3876 /* All elements of Vframe_list should be frames. */ |
3877 if (! GC_FRAMEP (frame)) | 3877 if (! GC_FRAMEP (frame)) |
3878 abort (); | 3878 abort (); |
3879 | 3879 |
3880 if (FRAME_X_DISPLAY (XFRAME (frame)) != display) | |
3881 continue; | |
3882 | |
3883 /* Scan this frame's scroll bar list for a scroll bar with the | 3880 /* Scan this frame's scroll bar list for a scroll bar with the |
3884 right window ID. */ | 3881 right window ID. */ |
3885 condemned = FRAME_CONDEMNED_SCROLL_BARS (XFRAME (frame)); | 3882 condemned = FRAME_CONDEMNED_SCROLL_BARS (XFRAME (frame)); |
3886 for (bar = FRAME_SCROLL_BARS (XFRAME (frame)); | 3883 for (bar = FRAME_SCROLL_BARS (XFRAME (frame)); |
3887 /* This trick allows us to search both the ordinary and | 3884 /* This trick allows us to search both the ordinary and |
3888 condemned scroll bar lists with one loop. */ | 3885 condemned scroll bar lists with one loop. */ |
3889 ! GC_NILP (bar) || (bar = condemned, | 3886 ! GC_NILP (bar) || (bar = condemned, |
3890 condemned = Qnil, | 3887 condemned = Qnil, |
3891 ! GC_NILP (bar)); | 3888 ! GC_NILP (bar)); |
3892 bar = XSCROLL_BAR (bar)->next) | 3889 bar = XSCROLL_BAR (bar)->next) |
3893 if (SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)) == window_id) | 3890 if (SCROLL_BAR_X_WINDOW (XSCROLL_BAR (bar)) == window_id && |
3891 FRAME_X_DISPLAY (XFRAME (frame)) == display) | |
3894 return XSCROLL_BAR (bar); | 3892 return XSCROLL_BAR (bar); |
3895 } | 3893 } |
3896 | 3894 |
3897 return 0; | 3895 return 0; |
3898 } | 3896 } |