Fix Motif menu drawing in Xnest.
See also Red Hat bug #229350, OpenSolaris bug #6366490.
This commit is contained in:
		
							parent
							
								
									3b73d62791
								
							
						
					
					
						commit
						605e6764df
					
				|  | @ -88,7 +88,7 @@ xnestCollectExposures(void) | ||||||
|   while (XCheckIfEvent(xnestDisplay, &X, xnestExposurePredicate, NULL)) { |   while (XCheckIfEvent(xnestDisplay, &X, xnestExposurePredicate, NULL)) { | ||||||
|     pWin = xnestWindowPtr(X.xexpose.window); |     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.x1 = pWin->drawable.x + wBorderWidth(pWin) + X.xexpose.x; | ||||||
|       Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + X.xexpose.y; |       Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + X.xexpose.y; | ||||||
|       Box.x2 = Box.x1 + X.xexpose.width; |       Box.x2 = Box.x1 + X.xexpose.width; | ||||||
|  | @ -96,7 +96,7 @@ xnestCollectExposures(void) | ||||||
|        |        | ||||||
|       REGION_INIT(pWin->drawable.pScreen, &Rgn, &Box, 1); |       REGION_INIT(pWin->drawable.pScreen, &Rgn, &Box, 1); | ||||||
|        |        | ||||||
|       miWindowExposures(pWin, &Rgn, NullRegion);  |       miSendExposures(pWin, &Rgn, Box.x2, Box.y2); | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue