aboutsummaryrefslogtreecommitdiff
path: root/rootston/xdg_shell_v6.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-13 22:17:25 +0100
committeremersion <contact@emersion.fr>2018-03-13 22:17:25 +0100
commitace738dbca9cadb9b9bc5e15aeac19131bab3998 (patch)
tree9334caf980e8464d3a8c7cfe3803ac46fc28a2e2 /rootston/xdg_shell_v6.c
parent149209b72ed069f3c6026e6bf7ffb4ffff0de190 (diff)
xdg-shell-v6: next_geometry and geometry fields are not longer pointers in wlr_xdg_surface_v6
Diffstat (limited to 'rootston/xdg_shell_v6.c')
-rw-r--r--rootston/xdg_shell_v6.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/xdg_shell_v6.c b/rootston/xdg_shell_v6.c
index 59637105..13d25331 100644
--- a/rootston/xdg_shell_v6.c
+++ b/rootston/xdg_shell_v6.c
@@ -60,9 +60,9 @@ static void get_size(const struct roots_view *view, struct wlr_box *box) {
assert(view->type == ROOTS_XDG_SHELL_V6_VIEW);
struct wlr_xdg_surface_v6 *surface = view->xdg_surface_v6;
- if (surface->geometry->width > 0 && surface->geometry->height > 0) {
- box->width = surface->geometry->width;
- box->height = surface->geometry->height;
+ if (surface->geometry.width > 0 && surface->geometry.height > 0) {
+ box->width = surface->geometry.width;
+ box->height = surface->geometry.height;
} else if (view->wlr_surface != NULL) {
box->width = view->wlr_surface->current->width;
box->height = view->wlr_surface->current->height;