diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-19 18:49:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 18:49:52 -0400 |
commit | d5a8a879b65e4d83dbd1e7d87e9ef20ffd4b657f (patch) | |
tree | b428c88b3a4be0507ba9f83e94c607b94618b547 /sway/desktop | |
parent | Merge pull request #1625 from emersion/matrix-redesign (diff) | |
parent | Update wlroots API (diff) | |
download | sway-d5a8a879b65e4d83dbd1e7d87e9ef20ffd4b657f.tar.gz sway-d5a8a879b65e4d83dbd1e7d87e9ef20ffd4b657f.tar.zst sway-d5a8a879b65e4d83dbd1e7d87e9ef20ffd4b657f.zip |
Merge pull request #1626 from emersion/wlroots-update
Update wlroots API
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 247c279f..96635db4 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #include <stdlib.h> | 3 | #include <stdlib.h> |
4 | #include <time.h> | 4 | #include <time.h> |
5 | #include <wayland-server.h> | 5 | #include <wayland-server.h> |
6 | #include <wlr/render.h> | 6 | #include <wlr/render/wlr_renderer.h> |
7 | #include <wlr/types/wlr_matrix.h> | 7 | #include <wlr/types/wlr_matrix.h> |
8 | #include <wlr/types/wlr_output.h> | 8 | #include <wlr/types/wlr_output.h> |
9 | #include <wlr/types/wlr_surface.h> | 9 | #include <wlr/types/wlr_surface.h> |
@@ -152,8 +152,8 @@ static void output_frame_view(swayc_t *view, void *data) { | |||
152 | 152 | ||
153 | switch (sway_view->type) { | 153 | switch (sway_view->type) { |
154 | case SWAY_XDG_SHELL_V6_VIEW: { | 154 | case SWAY_XDG_SHELL_V6_VIEW: { |
155 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x; | 155 | int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry.x; |
156 | int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry->y; | 156 | int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry.y; |
157 | render_surface(surface, wlr_output, &output->last_frame, | 157 | render_surface(surface, wlr_output, &output->last_frame, |
158 | view->x - window_offset_x, | 158 | view->x - window_offset_x, |
159 | view->y - window_offset_y, | 159 | view->y - window_offset_y, |