Commit 2a692ba4 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(xlwmenu_window_p): New function.

parent 22cd6fd3
......@@ -1195,6 +1195,23 @@ make_windows_if_needed (mw, n)
/* Value is non-zero if WINDOW is part of menu bar widget W. */
xlwmenu_window_p (w, window)
Widget w;
Window window;
XlwMenuWidget mw = (XlwMenuWidget) w;
int i;
for (i = 0; i < mw->menu.windows_length; ++i)
if (window == mw->[i].window)
return i < mw->menu.windows_length;
/* Make the window fit in the screen */
static void
fit_to_screen (mw, ws, previous_ws, horizontal_p)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment