Commit da353f23 authored by Miles Bader's avatar Miles Bader
Browse files

(XlwMenuSetValues): Only frob the display if the menu is actually displayed.

parent a033ea13
......@@ -1813,15 +1813,17 @@ XlwMenuSetValues (current, request, new)
redisplay = True;
for (i = 0; i < oldmw->menu.windows_length; i++)
{
XSetWindowBackground (XtDisplay (oldmw),
oldmw->menu.windows [i].window,
newmw->core.background_pixel);
/* clear windows and generate expose events */
XClearArea (XtDisplay (oldmw), oldmw->menu.windows[i].window,
0, 0, 0, 0, True);
}
if (XtIsRealized (oldmw))
/* If the menu is currently displayed, change the display. */
for (i = 0; i < oldmw->menu.windows_length; i++)
{
XSetWindowBackground (XtDisplay (oldmw),
oldmw->menu.windows [i].window,
newmw->core.background_pixel);
/* clear windows and generate expose events */
XClearArea (XtDisplay (oldmw), oldmw->menu.windows[i].window,
0, 0, 0, 0, True);
}
}
return redisplay;
......
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