LookingGlass/client/displayservers
Quantum 270631f1b9 [client] ds: add surface-only warp variant
This commit converts the output of ds->getProp(LG_DS_WARP_SUPPORT) to
an enum containing three items:

* LG_DS_WARP_NONE: warp is not supported at all
* LG_DS_WARP_SURFACE: warp is possible, but only inside the window
* LG_DS_WARP_SCREEN: warp is possible anywhere on the screen

LG_DS_WARP_NONE corresponds to the old false return value, and
LG_DS_WARP_SCREEN corresponds to the old true return value.

LG_DS_WARP_SURFACE is designed for Wayland, where warping is possible,
but only in our window. In this case, since we cannot warp outside
the window, we can warp the cursor to the edge when we attempt to exit.
If the cursor leaves, the normal leave routine gets called, and the
cursor disappears. If the cursor does not end up leaving, we grab it
again.
2021-02-21 10:31:49 +11:00
..
SDL [client] app: fix spelling error 2021-02-21 10:31:48 +11:00
Wayland [client] ds: add surface-only warp variant 2021-02-21 10:31:49 +11:00
X11 [client] ds: add surface-only warp variant 2021-02-21 10:31:49 +11:00
CMakeLists.txt [client] probe Wayland backend first 2021-02-21 10:31:48 +11:00