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/seatop_default.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/seatop_default.c')
-rw-r--r-- | sway/input/seatop_default.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c index 1dce6dae..62261c77 100644 --- a/sway/input/seatop_default.c +++ b/sway/input/seatop_default.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include "sway/input/tablet.h" | 12 | #include "sway/input/tablet.h" |
13 | #include "sway/layers.h" | 13 | #include "sway/layers.h" |
14 | #include "sway/output.h" | 14 | #include "sway/output.h" |
15 | #include "sway/scene_descriptor.h" | ||
15 | #include "sway/tree/view.h" | 16 | #include "sway/tree/view.h" |
16 | #include "sway/tree/workspace.h" | 17 | #include "sway/tree/workspace.h" |
17 | #include "log.h" | 18 | #include "log.h" |
@@ -620,12 +621,7 @@ static void handle_pointer_motion(struct sway_seat *seat, uint32_t time_msec) { | |||
620 | wlr_seat_pointer_notify_clear_focus(seat->wlr_seat); | 621 | wlr_seat_pointer_notify_clear_focus(seat->wlr_seat); |
621 | } | 622 | } |
622 | 623 | ||
623 | struct sway_drag_icon *drag_icon; | 624 | drag_icons_update_position(seat); |
624 | wl_list_for_each(drag_icon, &root->drag_icons, link) { | ||
625 | if (drag_icon->seat == seat) { | ||
626 | drag_icon_update_position(drag_icon); | ||
627 | } | ||
628 | } | ||
629 | 625 | ||
630 | e->previous_node = node; | 626 | e->previous_node = node; |
631 | } | 627 | } |
@@ -655,12 +651,7 @@ static void handle_tablet_tool_motion(struct sway_seat *seat, | |||
655 | wlr_tablet_v2_tablet_tool_notify_proximity_out(tool->tablet_v2_tool); | 651 | wlr_tablet_v2_tablet_tool_notify_proximity_out(tool->tablet_v2_tool); |
656 | } | 652 | } |
657 | 653 | ||
658 | struct sway_drag_icon *drag_icon; | 654 | drag_icons_update_position(seat); |
659 | wl_list_for_each(drag_icon, &root->drag_icons, link) { | ||
660 | if (drag_icon->seat == seat) { | ||
661 | drag_icon_update_position(drag_icon); | ||
662 | } | ||
663 | } | ||
664 | 655 | ||
665 | e->previous_node = node; | 656 | e->previous_node = node; |
666 | } | 657 | } |