diff options
author | Adam Jackson <ajax@redhat.com> | 2008-03-03 15:45:17 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-03-03 15:45:17 -0500 |
commit | 605e6764dfd3e9cb917b9cfcd92fe89857c1a1c9 (patch) | |
tree | 752e5ca1f3de863f06ae22c861c9acb2117338ea /hw/xnest | |
parent | 3b73d62791d925c465ec855f96981d151dd3c179 (diff) |
Fix Motif menu drawing in Xnest.
See also Red Hat bug #229350, OpenSolaris bug #6366490.
Diffstat (limited to 'hw/xnest')
-rw-r--r-- | hw/xnest/Events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xnest/Events.c b/hw/xnest/Events.c index 38fefa7a2..073535482 100644 --- a/hw/xnest/Events.c +++ b/hw/xnest/Events.c @@ -88,7 +88,7 @@ xnestCollectExposures(void) while (XCheckIfEvent(xnestDisplay, &X, xnestExposurePredicate, NULL)) { pWin = xnestWindowPtr(X.xexpose.window); - if (pWin) { + if (pWin && X.xexpose.width && X.xexpose.height) { Box.x1 = pWin->drawable.x + wBorderWidth(pWin) + X.xexpose.x; Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + X.xexpose.y; Box.x2 = Box.x1 + X.xexpose.width; @@ -96,7 +96,7 @@ xnestCollectExposures(void) REGION_INIT(pWin->drawable.pScreen, &Rgn, &Box, 1); - miWindowExposures(pWin, &Rgn, NullRegion); + miSendExposures(pWin, &Rgn, Box.x2, Box.y2); } } } |