Merge pull request #12223 from luc-git/comments
Update comments RenderWidget.cpp
This commit is contained in:
commit
e1ec47b504
|
@ -262,7 +262,16 @@ void RenderWidget::SetCursorLocked(bool locked, bool follow_aspect_ratio)
|
||||||
|
|
||||||
if (ClipCursor(&rect))
|
if (ClipCursor(&rect))
|
||||||
#else
|
#else
|
||||||
// TODO: implement on other platforms. Probably XGrabPointer on Linux.
|
// TODO: Implement on other platforms. XGrabPointer on Linux X11 should be equivalent to
|
||||||
|
// ClipCursor on Windows, though XFixesCreatePointerBarrier and XFixesDestroyPointerBarrier
|
||||||
|
// may also work. On Wayland zwp_pointer_constraints_v1::confine_pointer and
|
||||||
|
// zwp_pointer_constraints_v1::destroy provide this functionality.
|
||||||
|
// More info:
|
||||||
|
// https://stackoverflow.com/a/36269507
|
||||||
|
// https://tronche.com/gui/x/xlib/input/XGrabPointer.html
|
||||||
|
// https://www.x.org/releases/X11R7.7/doc/fixesproto/fixesproto.txt
|
||||||
|
// https://wayland.app/protocols/pointer-constraints-unstable-v1
|
||||||
|
|
||||||
// The setting is hidden in the UI if not implemented
|
// The setting is hidden in the UI if not implemented
|
||||||
if (false)
|
if (false)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue