mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 05:53:40 +00:00
270631f1b9
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. |
||
---|---|---|
.. | ||
interface | ||
app.h | ||
egl_dynprocs.h | ||
ll.h | ||
util.h |