@@ -217,13 +217,24 @@ bool LunarWM_init(LunarWM *wm)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!LunarWM_xr_init(wm)) {
|
|
||||||
wlr_log(WLR_ERROR, "Failed to initialize OpenXR! Disabling XR...");
|
|
||||||
wm->xr.available = false;
|
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);
|
LunarWM_xr_cleanup(wm);
|
||||||
} else {
|
} else {
|
||||||
wm->xr.available = true;
|
wm->xr.available = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wlr_log(WLR_INFO, "OpenGL ES version: %s", glGetString(GL_VERSION));
|
wlr_log(WLR_INFO, "OpenGL ES version: %s", glGetString(GL_VERSION));
|
||||||
InitWindow(0, 0, "");
|
InitWindow(0, 0, "");
|
||||||
|
|||||||
@@ -1215,6 +1215,9 @@ static void Pointer_motion_notify(struct wl_listener *listener, void *data)
|
|||||||
if (p->server->cman->cfg.input.mouse.invert_y) {
|
if (p->server->cman->cfg.input.mouse.invert_y) {
|
||||||
dy *= -1;
|
dy *= -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wlr_log(WLR_DEBUG, "cursor delta: %f,%f", dx, dy);
|
||||||
|
|
||||||
float const R = p->server->cman->cfg.space.radius;
|
float const R = p->server->cman->cfg.space.radius;
|
||||||
float const g = 0.0005f;
|
float const g = 0.0005f;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user