System Information
Operating system and graphics card
Fedora 26 Linux 4.15.6-200.fc26.x86_64 + Intel HD Graphics 530 + GeForce GTX 960M
with Xwayland
Blender Version
Broken: blender-2.79-linux-glibc219-x86_64 5bcd8ac9adbfa (from d.b.o)
Worked: same version with Xorg instead of Xwayland
Short description of error
bge.render.setMousePosition works with X server, but it fails silently with Xwayland.
Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps
import bge bge.logic.mouse.visible = True center = bge.render.getWindowWidth() // 2, bge.render.getWindowHeight() // 2 bge.render.setMousePosition(*center) print(center)