diff options
| author | Karl Heuer | 1995-04-06 18:51:54 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-04-06 18:51:54 +0000 |
| commit | 21a6ce3ada5247361ce1f4d3c3d64c10065b3e1e (patch) | |
| tree | a68eae12959cb5187f5409bf50512c6a862e808a /src | |
| parent | e1960a184acd8fd5e63066a92af72e8bae88a799 (diff) | |
| download | emacs-21a6ce3ada5247361ce1f4d3c3d64c10065b3e1e.tar.gz emacs-21a6ce3ada5247361ce1f4d3c3d64c10065b3e1e.zip | |
(x_window_to_frame): Skip non-X frames before testing dpyinfo.
[USE_X_TOOLKIT] (x_any_window_to_frame, x_top_window_to_frame): Ditto.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/xfns.c b/src/xfns.c index 88310ed8cc0..6b323e580b3 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -276,11 +276,9 @@ x_window_to_frame (dpyinfo, wdesc) | |||
| 276 | if (!GC_FRAMEP (frame)) | 276 | if (!GC_FRAMEP (frame)) |
| 277 | continue; | 277 | continue; |
| 278 | f = XFRAME (frame); | 278 | f = XFRAME (frame); |
| 279 | if (FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 279 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 280 | continue; | 280 | continue; |
| 281 | #ifdef USE_X_TOOLKIT | 281 | #ifdef USE_X_TOOLKIT |
| 282 | if (f->display.nothing == 1) | ||
| 283 | return 0; | ||
| 284 | if ((f->display.x->edit_widget | 282 | if ((f->display.x->edit_widget |
| 285 | && XtWindow (f->display.x->edit_widget) == wdesc) | 283 | && XtWindow (f->display.x->edit_widget) == wdesc) |
| 286 | || f->display.x->icon_desc == wdesc) | 284 | || f->display.x->icon_desc == wdesc) |
| @@ -313,10 +311,8 @@ x_any_window_to_frame (dpyinfo, wdesc) | |||
| 313 | if (!GC_FRAMEP (frame)) | 311 | if (!GC_FRAMEP (frame)) |
| 314 | continue; | 312 | continue; |
| 315 | f = XFRAME (frame); | 313 | f = XFRAME (frame); |
| 316 | if (FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 314 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 317 | continue; | 315 | continue; |
| 318 | if (f->display.nothing == 1) | ||
| 319 | return 0; | ||
| 320 | x = f->display.x; | 316 | x = f->display.x; |
| 321 | /* This frame matches if the window is any of its widgets. */ | 317 | /* This frame matches if the window is any of its widgets. */ |
| 322 | if (wdesc == XtWindow (x->widget) | 318 | if (wdesc == XtWindow (x->widget) |
| @@ -348,10 +344,8 @@ x_top_window_to_frame (dpyinfo, wdesc) | |||
| 348 | if (!GC_FRAMEP (frame)) | 344 | if (!GC_FRAMEP (frame)) |
| 349 | continue; | 345 | continue; |
| 350 | f = XFRAME (frame); | 346 | f = XFRAME (frame); |
| 351 | if (FRAME_X_DISPLAY_INFO (f) != dpyinfo) | 347 | if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo) |
| 352 | continue; | 348 | continue; |
| 353 | if (f->display.nothing == 1) | ||
| 354 | return 0; | ||
| 355 | x = f->display.x; | 349 | x = f->display.x; |
| 356 | /* This frame matches if the window is its topmost widget. */ | 350 | /* This frame matches if the window is its topmost widget. */ |
| 357 | if (wdesc == XtWindow (x->widget)) | 351 | if (wdesc == XtWindow (x->widget)) |