mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(XlwMenuSetValues): Only frob the display if the menu is actually displayed.
This commit is contained in:
parent
a033ea13a3
commit
da353f232d
1 changed files with 11 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue