aboutsummaryrefslogtreecommitdiff
path: root/rootston/output.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:35 -0500
committerTony Crisci <tony@dubstepdish.com>2017-11-15 08:34:48 -0500
commit12758a00a2d388b050386f017a3a273c1302e648 (patch)
treee912ea57359dc3f22b3ad7e33b7520728f273552 /rootston/output.c
parentac4841ba37aee8c0d661c44f2de2fd6ed5d38086 (diff)
rootston: touch to focus
Diffstat (limited to 'rootston/output.c')
-rw-r--r--rootston/output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 0b13a959..6c8f2519 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -209,8 +209,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
struct wlr_touch_point *point =
wlr_seat_touch_get_point(seat->seat, drag_icon->touch_id);
if (point) {
- icon_x = seat->touch_grab_x + drag_icon->sx;
- icon_y = seat->touch_grab_y + drag_icon->sy;
+ icon_x = seat->touch_x + drag_icon->sx;
+ icon_y = seat->touch_y + drag_icon->sy;
render_surface(icon, desktop, wlr_output, &now, icon_x, icon_y, 0);
}
}