diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2026-01-05 01:17:30 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2026-01-05 01:17:30 -0700 |
| commit | f6497f43b02e8b0351d0bbf0446c037161cda430 (patch) | |
| tree | e22df1dc0d053444c8129a596a6fe2f4e7f68a92 /rt/src | |
| parent | 34e0354bb2d07ce0ad8a6e83e226370cfb9904da (diff) | |
| download | montis-f6497f43b02e8b0351d0bbf0446c037161cda430.tar.gz montis-f6497f43b02e8b0351d0bbf0446c037161cda430.tar.bz2 montis-f6497f43b02e8b0351d0bbf0446c037161cda430.zip | |
[fix] issue where dragging doesn't work on native.
Diffstat (limited to 'rt/src')
| -rw-r--r-- | rt/src/wl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rt/src/wl.c b/rt/src/wl.c index f528c22..8963e39 100644 --- a/rt/src/wl.c +++ b/rt/src/wl.c @@ -429,6 +429,9 @@ static void server_cursor_motion(struct wl_listener *listener, void *data) struct montis_server *server = wl_container_of(listener, server, cursor_motion); struct wlr_pointer_motion_event *event = data; + struct wlr_seat *seat = server->seat; + struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat); + uint32_t modifiers = keyboard ? wlr_keyboard_get_modifiers(keyboard) : 0; /* The cursor doesn't move unless we tell it to. The cursor automatically * handles constraining the motion to the output layout, as well as any * special configuration applied for the specific input device which @@ -437,6 +440,8 @@ static void server_cursor_motion(struct wl_listener *listener, void *data) wlr_cursor_move(server->cursor, &event->pointer->base, event->delta_x, event->delta_y); process_cursor_motion(server, event->time_msec); + plugin_call_update_state(server->plugin, plugin_handle_motion, event, + modifiers, 0, server->cursor->x, server->cursor->y); } static void server_cursor_motion_absolute(struct wl_listener *listener, @@ -460,7 +465,7 @@ static void server_cursor_motion_absolute(struct wl_listener *listener, event->y); process_cursor_motion(server, event->time_msec); plugin_call_update_state(server->plugin, plugin_handle_motion, event, - modifiers, server->cursor->x, server->cursor->y); + modifiers, 1, server->cursor->x, server->cursor->y); } static void server_cursor_button(struct wl_listener *listener, void *data) |