diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2024-01-18 10:02:41 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-18 18:36:54 +0300 |
commit | 6e5fc4c2aafd211323c6037aa868c075852bfe15 (patch) | |
tree | bff87217414fa981d48244c5bc1b253817646783 /sway/desktop/output.c | |
parent | scene_graph: Port xdg_shell (diff) | |
download | sway-6e5fc4c2aafd211323c6037aa868c075852bfe15.tar.gz sway-6e5fc4c2aafd211323c6037aa868c075852bfe15.tar.zst sway-6e5fc4c2aafd211323c6037aa868c075852bfe15.zip |
scene_graph: Port xwayland
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index a5184484..36c8f52c 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -182,23 +182,6 @@ void output_view_for_each_popup_surface(struct sway_output *output, | |||
182 | view_for_each_popup_surface(view, output_for_each_surface_iterator, &data); | 182 | view_for_each_popup_surface(view, output_for_each_surface_iterator, &data); |
183 | } | 183 | } |
184 | 184 | ||
185 | #if HAVE_XWAYLAND | ||
186 | void output_unmanaged_for_each_surface(struct sway_output *output, | ||
187 | struct wl_list *unmanaged, sway_surface_iterator_func_t iterator, | ||
188 | void *user_data) { | ||
189 | struct sway_xwayland_unmanaged *unmanaged_surface; | ||
190 | wl_list_for_each(unmanaged_surface, unmanaged, link) { | ||
191 | struct wlr_xwayland_surface *xsurface = | ||
192 | unmanaged_surface->wlr_xwayland_surface; | ||
193 | double ox = unmanaged_surface->lx - output->lx; | ||
194 | double oy = unmanaged_surface->ly - output->ly; | ||
195 | |||
196 | output_surface_for_each_surface(output, xsurface->surface, ox, oy, | ||
197 | iterator, user_data); | ||
198 | } | ||
199 | } | ||
200 | #endif | ||
201 | |||
202 | static int scale_length(int length, int offset, float scale) { | 185 | static int scale_length(int length, int offset, float scale) { |
203 | return roundf((offset + length) * scale) - roundf(offset * scale); | 186 | return roundf((offset + length) * scale) - roundf(offset * scale); |
204 | } | 187 | } |