mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
rootless: Use screen_x and screen_y instead of pixmap pointer hacks
This updates rootless to treat pixmaps consistently with COMPOSITE, using the screen_x and screen_y values rather than doing hacky math. This will allow for proper bounds checking on a given PixmapRec. Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
@@ -137,7 +137,7 @@ present_check_flip(RRCrtcPtr crtc,
|
||||
|
||||
/* Does the window match the pixmap exactly? */
|
||||
if (window->drawable.x != 0 || window->drawable.y != 0 ||
|
||||
#ifdef COMPOSITE
|
||||
#if defined(COMPOSITE) || defined(ROOTLESS)
|
||||
window->drawable.x != pixmap->screen_x || window->drawable.y != pixmap->screen_y ||
|
||||
#endif
|
||||
window->drawable.width != pixmap->drawable.width ||
|
||||
|
||||
Reference in New Issue
Block a user