diff options
author | emersion <contact@emersion.fr> | 2018-09-07 15:22:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 15:22:16 +0200 |
commit | 085142ba346e0b8dd1a9b1a969a37156cf5656c1 (patch) | |
tree | d3e71fffbcb8d5f0c0ed986bdef0e73f2a68a952 /rootston | |
parent | 8898f3199a99f3953e08a9312ad993712e434f71 (diff) | |
parent | f6168c2afeece02b118b2bc43412fc3344e59028 (diff) |
Merge pull request #1232 from nyorain/fix/dnd-offset
Fix #1129
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/seat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rootston/seat.c b/rootston/seat.c index 9010d6e3..c11ff017 100644 --- a/rootston/seat.c +++ b/rootston/seat.c @@ -502,16 +502,16 @@ void roots_drag_icon_update_position(struct roots_drag_icon *icon) { struct roots_seat *seat = icon->seat; struct wlr_cursor *cursor = seat->cursor->cursor; if (wlr_icon->is_pointer) { - icon->x = cursor->x + wlr_icon->sx; - icon->y = cursor->y + wlr_icon->sy; + icon->x = cursor->x; + icon->y = cursor->y; } else { struct wlr_touch_point *point = wlr_seat_touch_get_point(seat->seat, wlr_icon->touch_id); if (point == NULL) { return; } - icon->x = seat->touch_x + wlr_icon->sx; - icon->y = seat->touch_y + wlr_icon->sy; + icon->x = seat->touch_x; + icon->y = seat->touch_y; } roots_drag_icon_damage_whole(icon); |