aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:03:05 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-06 15:38:37 -0400
commit764489e73760534d49760af123cae46109564e86 (patch)
tree243104969dc80855d313faf5a0d360dd5508dc52 /sway/desktop
parentMerge pull request #1755 from emersion/view-child-hidpi (diff)
downloadsway-764489e73760534d49760af123cae46109564e86.tar.gz
sway-764489e73760534d49760af123cae46109564e86.tar.zst
sway-764489e73760534d49760af123cae46109564e86.zip
Break everything^W^WUse wlr_box for sway_container
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/desktop.c2
-rw-r--r--sway/desktop/output.c15
2 files changed, 11 insertions, 6 deletions
diff --git a/sway/desktop/desktop.c b/sway/desktop/desktop.c
index 3a13191f..f0a14445 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->x, ly - cont->y, surface); 11 lx - cont->box.x, ly - cont->box.y, surface);
12 } 12 }
13 } 13 }
14} 14}
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}