aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-19 18:49:52 -0400
committerGitHub <noreply@github.com>2018-03-19 18:49:52 -0400
commitd5a8a879b65e4d83dbd1e7d87e9ef20ffd4b657f (patch)
treeb428c88b3a4be0507ba9f83e94c607b94618b547
parent9823a7c6c8cd5556390d2a53f34e30c3689bc6fd (diff)
parent01beee58263a3d1de6eb30951332f31ca46eb4d3 (diff)
Merge pull request #1626 from emersion/wlroots-update
Update wlroots API
-rw-r--r--include/sway/server.h2
-rw-r--r--sway/desktop/output.c6
-rw-r--r--sway/server.c2
-rw-r--r--sway/tree/container.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/include/sway/server.h b/include/sway/server.h
index 3fcdb1ba..eb7fa2ff 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -7,7 +7,7 @@
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_xdg_shell_v6.h>
-#include <wlr/render.h>
+#include <wlr/render/wlr_renderer.h>
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
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 @@
#include <stdlib.h>
#include <time.h>
#include <wayland-server.h>
-#include <wlr/render.h>
+#include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_matrix.h>
#include <wlr/types/wlr_output.h>
#include <wlr/types/wlr_surface.h>
@@ -152,8 +152,8 @@ static void output_frame_view(swayc_t *view, void *data) {
switch (sway_view->type) {
case SWAY_XDG_SHELL_V6_VIEW: {
- int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry->x;
- int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry->y;
+ int window_offset_x = view->sway_view->wlr_xdg_surface_v6->geometry.x;
+ int window_offset_y = view->sway_view->wlr_xdg_surface_v6->geometry.y;
render_surface(surface, wlr_output, &output->last_frame,
view->x - window_offset_x,
view->y - window_offset_y,
diff --git a/sway/server.c b/sway/server.c
index 495769ee..ca08d7fb 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -4,7 +4,7 @@
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
-#include <wlr/render.h>
+#include <wlr/render/wlr_renderer.h>
#include <wlr/render/gles2.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_wl_shell.h>
diff --git a/sway/tree/container.c b/sway/tree/container.c
index b424dd0a..705221d7 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -325,8 +325,8 @@ swayc_t *swayc_at(swayc_t *parent, double lx, double ly,
case SWAY_XDG_SHELL_V6_VIEW:
// the top left corner of the sway container is the
// coordinate of the top left corner of the window geometry
- view_sx += sview->wlr_xdg_surface_v6->geometry->x;
- view_sy += sview->wlr_xdg_surface_v6->geometry->y;
+ view_sx += sview->wlr_xdg_surface_v6->geometry.x;
+ view_sy += sview->wlr_xdg_surface_v6->geometry.y;
// check for popups
double popup_sx, popup_sy;