@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user