diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-29 12:48:45 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-29 12:48:45 -0400 |
commit | d9ab631f5d540d67d927e9d0975e2adb782e2e87 (patch) | |
tree | c519db809241ad1206d50ba6b69223bd11699721 | |
parent | 6699024b445a152e78670549efabe024cd670e99 (diff) |
bugfix: set cursor coords on warp_unchecked
-rw-r--r-- | types/wlr_cursor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index f9be0a7a..476af619 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -133,6 +133,9 @@ static void wlr_cursor_warp_unchecked(struct wlr_cursor *cur, wlr_output_move_cursor(l_output->output, output_x - hotspot_x, output_y - hotspot_y); } + + cur->x = x; + cur->y = y; } /** @@ -239,8 +242,6 @@ void wlr_cursor_move(struct wlr_cursor *cur, struct wlr_input_device *dev, } wlr_cursor_warp_unchecked(cur, x, y); - cur->x = x; - cur->y = y; } static void handle_pointer_motion(struct wl_listener *listener, void *data) { |