core: wayland: Remove references to wl.state (#1306)

This commit is contained in:
Colton Franklin 2024-11-24 19:42:43 -06:00 committed by GitHub
parent e4bc709ea2
commit d09990700f
Failed to generate hash of commit

View file

@ -650,8 +650,8 @@ const pointer_listener = struct {
const mouse_button: Core.MouseButton = @enumFromInt(button - c.BTN_LEFT);
const pressed = state == c.WL_POINTER_BUTTON_STATE_PRESSED;
const x = wl.state.input_state.mouse_position.x;
const y = wl.state.input_state.mouse_position.y;
const x = wl.core.input_state.mouse_position.x;
const y = wl.core.input_state.mouse_position.y;
if (pressed) {
wl.core.pushEvent(Core.Event{ .mouse_press = .{