if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
- if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
+ if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo)
continue;
#ifdef USE_X_TOOLKIT
- if (f->display.nothing == 1)
- return 0;
if ((f->display.x->edit_widget
&& XtWindow (f->display.x->edit_widget) == wdesc)
|| f->display.x->icon_desc == wdesc)
if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
- if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
+ if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo)
continue;
- if (f->display.nothing == 1)
- return 0;
x = f->display.x;
/* This frame matches if the window is any of its widgets. */
if (wdesc == XtWindow (x->widget)
if (!GC_FRAMEP (frame))
continue;
f = XFRAME (frame);
- if (FRAME_X_DISPLAY_INFO (f) != dpyinfo)
+ if (f->display.nothing == 1 || FRAME_X_DISPLAY_INFO (f) != dpyinfo)
continue;
- if (f->display.nothing == 1)
- return 0;
x = f->display.x;
/* This frame matches if the window is its topmost widget. */
if (wdesc == XtWindow (x->widget))