Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-09-30 16:49:29 +03:00
parent 4ddd9a0ca7
commit 389c1f9934
2 changed files with 20 additions and 6 deletions

View File

@@ -217,12 +217,23 @@ bool LunarWM_init(LunarWM *wm)
return false;
}
if (!LunarWM_xr_init(wm)) {
wlr_log(WLR_ERROR, "Failed to initialize OpenXR! Disabling XR...");
wm->xr.available = false;
LunarWM_xr_cleanup(wm);
} else {
wm->xr.available = true;
wm->xr.available = false;
{
char *no_xr = getenv("LWM_NO_XR");
bool xr = true;
if (no_xr != NULL && no_xr[0] != '\0')
xr = false;
if (xr) {
if (!LunarWM_xr_init(wm)) {
wlr_log(
WLR_ERROR, "Failed to initialize OpenXR! Disabling XR...");
LunarWM_xr_cleanup(wm);
} else {
wm->xr.available = true;
}
}
}
wlr_log(WLR_INFO, "OpenGL ES version: %s", glGetString(GL_VERSION));

View File

@@ -1215,6 +1215,9 @@ static void Pointer_motion_notify(struct wl_listener *listener, void *data)
if (p->server->cman->cfg.input.mouse.invert_y) {
dy *= -1;
}
wlr_log(WLR_DEBUG, "cursor delta: %f,%f", dx, dy);
float const R = p->server->cman->cfg.space.radius;
float const g = 0.0005f;