[client] wayland: restore cursor warp support via pointer confining

This notably does not restore any of the cursed pointer confining logic.
This commit is contained in:
Quantum
2026-08-08 14:49:45 -04:00
committed by Geoffrey McRae
parent 70ae98491d
commit e2be90e264
3 changed files with 58 additions and 4 deletions

View File

@@ -34,6 +34,13 @@
static struct Option waylandOptions[] =
{
{
.module = "wayland",
.name = "warpSupport",
.description = "Enable cursor warping",
.type = OPTION_TYPE_BOOL,
.value.x_bool = true,
},
{
.module = "wayland",
.name = "fractionScale",
@@ -133,6 +140,7 @@ static bool waylandInit(const LG_DSInitParams params)
wl_list_init(&wlWm.surfaceOutputs);
wlWm.warpSupport = option_get_bool("wayland", "warpSupport");
wlWm.useFractionalScale = option_get_bool("wayland", "fractionScale");
if (!waylandPollInit())
@@ -215,7 +223,7 @@ static bool waylandGetProp(LG_DSProperty prop, void * ret)
{
if (prop == LG_DS_WARP_SUPPORT)
{
*(enum LG_DSWarpSupport*)ret = LG_DS_WARP_NONE;
*(enum LG_DSWarpSupport*)ret = wlWm.warpSupport ? LG_DS_WARP_SURFACE : LG_DS_WARP_NONE;
return true;
}