aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index a9bda2154d3..fd42d5f8a4a 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -215,7 +215,7 @@ menubar_id_to_frame (id)
215 if (!GC_FRAMEP (frame)) 215 if (!GC_FRAMEP (frame))
216 continue; 216 continue;
217 f = XFRAME (frame); 217 f = XFRAME (frame);
218 if (f->output_data.nothing == 1) 218 if (!FRAME_WINDOW_P (f))
219 continue; 219 continue;
220 if (f->output_data.x->id == id) 220 if (f->output_data.x->id == id)
221 return f; 221 return f;