sync with OpenBSD -current

This commit is contained in:
purplerain 2024-04-29 00:35:41 +00:00
parent 5d45cd7ee8
commit 155eb8555e
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
5506 changed files with 1786257 additions and 1416034 deletions

View file

@ -622,8 +622,8 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
pPointer = MIPOINTER(pDev);
pScreen = pPointer->pScreen;
x = trunc(*screenx);
y = trunc(*screeny);
x = floor(*screenx);
y = floor(*screeny);
switch_screen = !point_on_screen(pScreen, x, y);
@ -701,9 +701,9 @@ miPointerSetPosition(DeviceIntPtr pDev, int mode, double *screenx,
* drop the float component on the floor
* FIXME: only drop remainder for ConstrainCursorHarder, not for screen
* crossings */
if (x != trunc(*screenx))
if (x != floor(*screenx))
*screenx = x;
if (y != trunc(*screeny))
if (y != floor(*screeny))
*screeny = y;
return pScreen;