summaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-04 22:12:32 -0400
committerLibravatar GitHub <noreply@github.com>2018-04-04 22:12:32 -0400
commit21aedf15052df4e7f8ee72922fa0e214d690facc (patch)
tree42039b2d318ab944dd148990329b4a2cf94fd9a3 /sway/desktop/output.c
parentMerge pull request #1707 from acrisci/transparency (diff)
parentUse new wlr_*_surface_at functions (diff)
downloadsway-21aedf15052df4e7f8ee72922fa0e214d690facc.tar.gz
sway-21aedf15052df4e7f8ee72922fa0e214d690facc.tar.zst
sway-21aedf15052df4e7f8ee72922fa0e214d690facc.zip
Merge pull request #1732 from emersion/view-children
Update for wlroots#824
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c11
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}