diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-11-21 19:55:47 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | c640c3015f3a7ea2987bd7854d13ff282f90804f (patch) | |
tree | d292934709dcd71bdb244546b1684e690e0511f4 /sway/input/cursor.c | |
parent | renderer: Render scene_graph (diff) | |
download | sway-c640c3015f3a7ea2987bd7854d13ff282f90804f.tar.gz sway-c640c3015f3a7ea2987bd7854d13ff282f90804f.tar.zst sway-c640c3015f3a7ea2987bd7854d13ff282f90804f.zip |
scene_graph: Port seat drag icons
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 73aef4b0..e8604193 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -19,12 +19,12 @@ | |||
19 | #include "log.h" | 19 | #include "log.h" |
20 | #include "util.h" | 20 | #include "util.h" |
21 | #include "sway/commands.h" | 21 | #include "sway/commands.h" |
22 | #include "sway/desktop.h" | ||
23 | #include "sway/input/cursor.h" | 22 | #include "sway/input/cursor.h" |
24 | #include "sway/input/keyboard.h" | 23 | #include "sway/input/keyboard.h" |
25 | #include "sway/input/tablet.h" | 24 | #include "sway/input/tablet.h" |
26 | #include "sway/layers.h" | 25 | #include "sway/layers.h" |
27 | #include "sway/output.h" | 26 | #include "sway/output.h" |
27 | #include "sway/scene_descriptor.h" | ||
28 | #include "sway/tree/container.h" | 28 | #include "sway/tree/container.h" |
29 | #include "sway/tree/root.h" | 29 | #include "sway/tree/root.h" |
30 | #include "sway/tree/view.h" | 30 | #include "sway/tree/view.h" |
@@ -543,12 +543,8 @@ static void handle_touch_motion(struct wl_listener *listener, void *data) { | |||
543 | if (seat->touch_id == event->touch_id) { | 543 | if (seat->touch_id == event->touch_id) { |
544 | seat->touch_x = lx; | 544 | seat->touch_x = lx; |
545 | seat->touch_y = ly; | 545 | seat->touch_y = ly; |
546 | struct sway_drag_icon *drag_icon; | 546 | |
547 | wl_list_for_each(drag_icon, &root->drag_icons, link) { | 547 | drag_icons_update_position(seat); |
548 | if (drag_icon->seat == seat) { | ||
549 | drag_icon_update_position(drag_icon); | ||
550 | } | ||
551 | } | ||
552 | } | 548 | } |
553 | 549 | ||
554 | if (cursor->simulating_pointer_from_touch) { | 550 | if (cursor->simulating_pointer_from_touch) { |