@@ -1295,17 +1295,6 @@ static void Pointer_motion_notify(struct wl_listener *listener, void *data)
|
|||||||
|
|
||||||
struct wlr_pointer_motion_event *ev = data;
|
struct wlr_pointer_motion_event *ev = data;
|
||||||
|
|
||||||
auto dev = (struct wlr_input_device *)p->wlr_pointer;
|
|
||||||
if (wlr_backend_is_wl(p->server->wayland.backend)) {
|
|
||||||
if (!wlr_wl_pointer_is_locked(dev)) {
|
|
||||||
assert(wlr_wl_pointer_set_locked(dev, true));
|
|
||||||
}
|
|
||||||
} else if (wlr_backend_is_x11(p->server->wayland.backend)) {
|
|
||||||
if (!wlr_x11_pointer_is_locked(dev)) {
|
|
||||||
assert(wlr_x11_pointer_set_locked(dev, true));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
float dx = (float)ev->delta_x;
|
float dx = (float)ev->delta_x;
|
||||||
float dy = (float)ev->delta_y;
|
float dy = (float)ev->delta_y;
|
||||||
if (p->server->cman->cfg.input.mouse.invert_x) {
|
if (p->server->cman->cfg.input.mouse.invert_x) {
|
||||||
|
|||||||
Reference in New Issue
Block a user