aboutsummaryrefslogtreecommitdiffstats
path: root/lwlib
diff options
context:
space:
mode:
authorMiles Bader2000-09-04 11:55:02 +0000
committerMiles Bader2000-09-04 11:55:02 +0000
commitda353f232d84f8fbce0a34d6087f5e8edb17d798 (patch)
tree99f88b4bfec2356e5fa1844a395d10c0c433250a /lwlib
parenta033ea13a3aafd9595267896825e9e5b7a6f38df (diff)
downloademacs-da353f232d84f8fbce0a34d6087f5e8edb17d798.tar.gz
emacs-da353f232d84f8fbce0a34d6087f5e8edb17d798.zip
(XlwMenuSetValues): Only frob the display if the menu is actually displayed.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/xlwmenu.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index 1ced18a5eb2..2239fb4b958 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -1813,15 +1813,17 @@ XlwMenuSetValues (current, request, new)
1813 1813
1814 redisplay = True; 1814 redisplay = True;
1815 1815
1816 for (i = 0; i < oldmw->menu.windows_length; i++) 1816 if (XtIsRealized (oldmw))
1817 { 1817 /* If the menu is currently displayed, change the display. */
1818 XSetWindowBackground (XtDisplay (oldmw), 1818 for (i = 0; i < oldmw->menu.windows_length; i++)
1819 oldmw->menu.windows [i].window, 1819 {
1820 newmw->core.background_pixel); 1820 XSetWindowBackground (XtDisplay (oldmw),
1821 /* clear windows and generate expose events */ 1821 oldmw->menu.windows [i].window,
1822 XClearArea (XtDisplay (oldmw), oldmw->menu.windows[i].window, 1822 newmw->core.background_pixel);
1823 0, 0, 0, 0, True); 1823 /* clear windows and generate expose events */
1824 } 1824 XClearArea (XtDisplay (oldmw), oldmw->menu.windows[i].window,
1825 0, 0, 0, 0, True);
1826 }
1825 } 1827 }
1826 1828
1827 return redisplay; 1829 return redisplay;