Xnest: implement a defined initialization order in BoxRec
Signed-off-by: rendick <rendick123@proton.me>
This commit is contained in:
		
							parent
							
								
									a0f4a5585d
								
							
						
					
					
						commit
						cd2e185838
					
				|  | @ -215,12 +215,11 @@ xnest_handle_event(xcb_generic_event_t *event) | ||||||
|             WindowPtr pWin = xnestWindowPtr(ev->window); |             WindowPtr pWin = xnestWindowPtr(ev->window); | ||||||
|             if (pWin && ev->width && ev->height) { |             if (pWin && ev->width && ev->height) { | ||||||
|                 RegionRec Rgn; |                 RegionRec Rgn; | ||||||
|                 BoxRec Box = { |                 BoxRec Box; | ||||||
|                     .x1 = pWin->drawable.x + wBorderWidth(pWin) + ev->x, |                 Box.x1 = pWin->drawable.x + wBorderWidth(pWin) + ev->x; | ||||||
|                     .y1 = pWin->drawable.y + wBorderWidth(pWin) + ev->y, |                 Box.y1 = pWin->drawable.y + wBorderWidth(pWin) + ev->y; | ||||||
|                     .x2 = Box.x1 + ev->width, |                 Box.x2 = Box.x1 + ev->width; | ||||||
|                     .y2 = Box.y1 + ev->height, |                 Box.y2 = Box.y1 + ev->height; | ||||||
|                 }; |  | ||||||
|                 RegionInit(&Rgn, &Box, 1); |                 RegionInit(&Rgn, &Box, 1); | ||||||
|                 miSendExposures(pWin, &Rgn, Box.x1, Box.y1); |                 miSendExposures(pWin, &Rgn, Box.x1, Box.y1); | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue