diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2023-01-01 10:57:46 -0800 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2023-01-20 17:10:54 +0000 |
commit | 16e7cdba489b7e419b3732cb56f26de2b71d3504 (patch) | |
tree | daae7ba367ba9938b6f737671839a0231e803893 /present | |
parent | 820b1dc461157b54fd49a787dbaf9d68a92debd9 (diff) |
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>
Diffstat (limited to 'present')
-rw-r--r-- | present/present_scmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/present/present_scmd.c b/present/present_scmd.c index 46fd9a1fd..200ded348 100644 --- a/present/present_scmd.c +++ b/present/present_scmd.c @@ -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 || |