aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Alexander Orzechowski <alex@ozal.ski>2023-11-21 19:55:47 -0500
committerLibravatar Kirill Primak <vyivel@eclair.cafe>2024-01-18 18:36:54 +0300
commitc640c3015f3a7ea2987bd7854d13ff282f90804f (patch)
treed292934709dcd71bdb244546b1684e690e0511f4 /sway/desktop/output.c
parentrenderer: Render scene_graph (diff)
downloadsway-c640c3015f3a7ea2987bd7854d13ff282f90804f.tar.gz
sway-c640c3015f3a7ea2987bd7854d13ff282f90804f.tar.zst
sway-c640c3015f3a7ea2987bd7854d13ff282f90804f.zip
scene_graph: Port seat drag icons
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 11de25fb..321e2a72 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -259,22 +259,6 @@ void output_unmanaged_for_each_surface(struct sway_output *output,
259} 259}
260#endif 260#endif
261 261
262void output_drag_icons_for_each_surface(struct sway_output *output,
263 struct wl_list *drag_icons, sway_surface_iterator_func_t iterator,
264 void *user_data) {
265 struct sway_drag_icon *drag_icon;
266 wl_list_for_each(drag_icon, drag_icons, link) {
267 double ox = drag_icon->x - output->lx;
268 double oy = drag_icon->y - output->ly;
269
270 if (drag_icon->wlr_drag_icon->surface->mapped) {
271 output_surface_for_each_surface(output,
272 drag_icon->wlr_drag_icon->surface, ox, oy,
273 iterator, user_data);
274 }
275 }
276}
277
278static int scale_length(int length, int offset, float scale) { 262static int scale_length(int length, int offset, float scale) {
279 return roundf((offset + length) * scale) - roundf(offset * scale); 263 return roundf((offset + length) * scale) - roundf(offset * scale);
280} 264}