diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-03-05 23:49:45 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-02 20:11:42 +0200 |
commit | c9e1dab3187d22ada0232d699e759a628e0ed185 (patch) | |
tree | 2838a14e3144fca71a7c693cd36ced33bf622bf7 /sway/desktop/output.c | |
parent | xwayland: don't rely on event source being data (diff) | |
download | sway-c9e1dab3187d22ada0232d699e759a628e0ed185.tar.gz sway-c9e1dab3187d22ada0232d699e759a628e0ed185.tar.zst sway-c9e1dab3187d22ada0232d699e759a628e0ed185.zip |
chore: chase wlroots map logic unification
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 01bc87bb..fe1fa8af 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -265,7 +265,7 @@ void output_drag_icons_for_each_surface(struct sway_output *output, | |||
265 | double ox = drag_icon->x - output->lx; | 265 | double ox = drag_icon->x - output->lx; |
266 | double oy = drag_icon->y - output->ly; | 266 | double oy = drag_icon->y - output->ly; |
267 | 267 | ||
268 | if (drag_icon->wlr_drag_icon->mapped) { | 268 | if (drag_icon->wlr_drag_icon->surface->mapped) { |
269 | output_surface_for_each_surface(output, | 269 | output_surface_for_each_surface(output, |
270 | drag_icon->wlr_drag_icon->surface, ox, oy, | 270 | drag_icon->wlr_drag_icon->surface, ox, oy, |
271 | iterator, user_data); | 271 | iterator, user_data); |
@@ -295,7 +295,7 @@ static void output_for_each_surface(struct sway_output *output, | |||
295 | if (lock_surface->output != output->wlr_output) { | 295 | if (lock_surface->output != output->wlr_output) { |
296 | continue; | 296 | continue; |
297 | } | 297 | } |
298 | if (!lock_surface->mapped) { | 298 | if (!lock_surface->surface->mapped) { |
299 | continue; | 299 | continue; |
300 | } | 300 | } |
301 | 301 | ||