aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-04-03 23:34:26 +0000
committerKarl Heuer1995-04-03 23:34:26 +0000
commit2d271e2eac416bad259487e3c29cd0760692cfc7 (patch)
treecd17aa0af6394bb4f9cf558a6a55a3839e897b66
parent34da6b1616c6501ef48016d8b901c43674a23ff2 (diff)
downloademacs-2d271e2eac416bad259487e3c29cd0760692cfc7.tar.gz
emacs-2d271e2eac416bad259487e3c29cd0760692cfc7.zip
(x_window_to_frame): New arg DPYINFO. All callers changed.
(x_any_window_to_frame, x_top_window_to_frame): Likewise.
-rw-r--r--src/xfns.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 6f3be6d6966..88310ed8cc0 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -263,7 +263,8 @@ check_x_display_info (frame)
263/* This function can be called during GC, so use GC_xxx type test macros. */ 263/* This function can be called during GC, so use GC_xxx type test macros. */
264 264
265struct frame * 265struct frame *
266x_window_to_frame (wdesc) 266x_window_to_frame (dpyinfo, wdesc)
267 struct x_display_info *dpyinfo;
267 int wdesc; 268 int wdesc;
268{ 269{
269 Lisp_Object tail, frame; 270 Lisp_Object tail, frame;
@@ -275,6 +276,8 @@ x_window_to_frame (wdesc)
275 if (!GC_FRAMEP (frame)) 276 if (!GC_FRAMEP (frame))
276 continue; 277 continue;
277 f = XFRAME (frame); 278 f = XFRAME (frame);
279 if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
280 continue;
278#ifdef USE_X_TOOLKIT 281#ifdef USE_X_TOOLKIT
279 if (f->display.nothing == 1) 282 if (f->display.nothing == 1)
280 return 0; 283 return 0;
@@ -296,7 +299,8 @@ x_window_to_frame (wdesc)
296 windows. */ 299 windows. */
297 300
298struct frame * 301struct frame *
299x_any_window_to_frame (wdesc) 302x_any_window_to_frame (dpyinfo, wdesc)
303 struct x_display_info *dpyinfo;
300 int wdesc; 304 int wdesc;
301{ 305{
302 Lisp_Object tail, frame; 306 Lisp_Object tail, frame;
@@ -309,6 +313,8 @@ x_any_window_to_frame (wdesc)
309 if (!GC_FRAMEP (frame)) 313 if (!GC_FRAMEP (frame))
310 continue; 314 continue;
311 f = XFRAME (frame); 315 f = XFRAME (frame);
316 if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
317 continue;
312 if (f->display.nothing == 1) 318 if (f->display.nothing == 1)
313 return 0; 319 return 0;
314 x = f->display.x; 320 x = f->display.x;
@@ -328,7 +334,8 @@ x_any_window_to_frame (wdesc)
328 If WDESC is some other (smaller) window, we return 0. */ 334 If WDESC is some other (smaller) window, we return 0. */
329 335
330struct frame * 336struct frame *
331x_top_window_to_frame (wdesc) 337x_top_window_to_frame (dpyinfo, wdesc)
338 struct x_display_info *dpyinfo;
332 int wdesc; 339 int wdesc;
333{ 340{
334 Lisp_Object tail, frame; 341 Lisp_Object tail, frame;
@@ -341,6 +348,8 @@ x_top_window_to_frame (wdesc)
341 if (!GC_FRAMEP (frame)) 348 if (!GC_FRAMEP (frame))
342 continue; 349 continue;
343 f = XFRAME (frame); 350 f = XFRAME (frame);
351 if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
352 continue;
344 if (f->display.nothing == 1) 353 if (f->display.nothing == 1)
345 return 0; 354 return 0;
346 x = f->display.x; 355 x = f->display.x;