summaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/desktop.c2
-rw-r--r--sway/desktop/output.c15
2 files changed, 6 insertions, 11 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c
index f0a14445..3a13191f 100644
--- a/sway/desktop/desktop.c
+++ b/sway/desktop/desktop.c
@@ -8,7 +8,7 @@ void desktop_damage_whole_surface(struct wlr_surface *surface, double lx,
8 struct sway_container *cont = root_container.children->items[i]; 8 struct sway_container *cont = root_container.children->items[i];
9 if (cont->type == C_OUTPUT) { 9 if (cont->type == C_OUTPUT) {
10 output_damage_whole_surface(cont->sway_output, 10 output_damage_whole_surface(cont->sway_output,
11 lx - cont->box.x, ly - cont->box.y, surface); 11 lx - cont->x, ly - cont->y, surface);
12 } 12 }
13 } 13 }
14} 14}
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}