diff options
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r-- | sway/desktop/output.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6cf5da48..0e8a9485 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -188,7 +188,7 @@ static void render_view(struct sway_container *view, void *data) { | |||
188 | } | 188 | } |
189 | 189 | ||
190 | switch (sway_view->type) { | 190 | switch (sway_view->type) { |
191 | case SWAY_XDG_SHELL_V6_VIEW: { | 191 | case SWAY_VIEW_XDG_SHELL_V6: { |
192 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry.x; | 192 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry.x; |
193 | int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry.y; | 193 | int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry.y; |
194 | render_surface(surface, wlr_output, when, | 194 | render_surface(surface, wlr_output, when, |
@@ -197,15 +197,12 @@ static void render_view(struct sway_container *view, void *data) { | |||
197 | when, view->x - window_offset_x, view->y - window_offset_y, 0, alpha); | 197 | when, view->x - window_offset_x, view->y - window_offset_y, 0, alpha); |
198 | break; | 198 | break; |
199 | } | 199 | } |
200 | case SWAY_WL_SHELL_VIEW: | 200 | case SWAY_VIEW_WL_SHELL: |
201 | render_wl_shell_surface(sway_view->wlr_wl_shell_surface, wlr_output, | 201 | render_wl_shell_surface(sway_view->wlr_wl_shell_surface, wlr_output, |
202 | when, view->x, view->y, 0, alpha, false); | 202 | when, view->x, view->y, 0, alpha, false); |
203 | break; | 203 | break; |
204 | case SWAY_XWAYLAND_VIEW: | 204 | case SWAY_VIEW_XWAYLAND: |
205 | render_surface(surface, wlr_output, when, view->x, view->y, | 205 | render_surface(surface, wlr_output, when, view->x, view->y, 0, alpha); |
206 | 0, alpha); | ||
207 | break; | ||
208 | default: | ||
209 | break; | 206 | break; |
210 | } | 207 | } |
211 | } | 208 | } |