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, 10 insertions, 5 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index aa18f1b8..49ffe74c 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -192,17 +192,22 @@ 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->x - window_offset_x, view->y - window_offset_y, 0, alpha); 195 view->box.x - window_offset_x,
196 render_xdg_v6_popups(sway_view->wlr_xdg_surface_v6, wlr_output, 196 view->box.y - window_offset_y,
197 when, view->x - window_offset_x, view->y - window_offset_y, 0, alpha); 197 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);
198 break; 202 break;
199 } 203 }
200 case SWAY_VIEW_WL_SHELL: 204 case SWAY_VIEW_WL_SHELL:
201 render_wl_shell_surface(sway_view->wlr_wl_shell_surface, wlr_output, 205 render_wl_shell_surface(sway_view->wlr_wl_shell_surface, wlr_output,
202 when, view->x, view->y, 0, alpha, false); 206 when, view->box.x, view->box.y, 0, alpha, false);
203 break; 207 break;
204 case SWAY_VIEW_XWAYLAND: 208 case SWAY_VIEW_XWAYLAND:
205 render_surface(surface, wlr_output, when, view->x, view->y, 0, alpha); 209 render_surface(surface, wlr_output, when,
210 view->box.x, view->box.y, 0, alpha);
206 break; 211 break;
207 } 212 }
208} 213}