summaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 49ffe74c..aa18f1b8 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -192,22 +192,17 @@ static void render_view(struct sway_container *view, void *data) {
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,
195 view->box.x - window_offset_x, 195 view->x - window_offset_x, view->y - window_offset_y, 0, alpha);
196 view->box.y - window_offset_y, 196 render_xdg_v6_popups(sway_view->wlr_xdg_surface_v6, wlr_output,
197 0, alpha); 197 when, view->x - window_offset_x, view->y - window_offset_y, 0, alpha);
198 render_xdg_v6_popups(sway_view->wlr_xdg_surface_v6, wlr_output, when,
199 view->box.x - window_offset_x,
200 view->box.y - window_offset_y,
201 0, alpha);
202 break; 198 break;
203 } 199 }
204 case SWAY_VIEW_WL_SHELL: 200 case SWAY_VIEW_WL_SHELL:
205 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,
206 when, view->box.x, view->box.y, 0, alpha, false); 202 when, view->x, view->y, 0, alpha, false);
207 break; 203 break;
208 case SWAY_VIEW_XWAYLAND: 204 case SWAY_VIEW_XWAYLAND:
209 render_surface(surface, wlr_output, when, 205 render_surface(surface, wlr_output, when, view->x, view->y, 0, alpha);
210 view->box.x, view->box.y, 0, alpha);
211 break; 206 break;
212 } 207 }
213} 208}