aboutsummaryrefslogtreecommitdiff
path: root/rootston/desktop.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-05 13:34:49 -0700
committerGitHub <noreply@github.com>2018-07-05 13:34:49 -0700
commit7c6588d7ae0b260aedc61da58eb6bf153b35ca94 (patch)
treed86694ce602f1656a939aac8f5b06e1875c2f7d7 /rootston/desktop.c
parent5d1c5ff80b4e50db68fc4e918d0dc3c171a043ae (diff)
parent515d68231252194a8c230d26658fd316179704c1 (diff)
Merge pull request #1076 from emersion/redesign-surface-state
surface: redesign state
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r--rootston/desktop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index d670c33b..4b5a5c9a 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -69,8 +69,8 @@ enum roots_deco_part view_get_deco_part(struct roots_view *view, double sx,
return ROOTS_DECO_PART_NONE;
}
- int sw = view->wlr_surface->current->width;
- int sh = view->wlr_surface->current->height;
+ int sw = view->wlr_surface->current.width;
+ int sh = view->wlr_surface->current.height;
int bw = view->border_width;
int titlebar_h = view->titlebar_height;
@@ -558,7 +558,7 @@ static bool view_at(struct roots_view *view, double lx, double ly,
double view_sx = lx - view->x;
double view_sy = ly - view->y;
- struct wlr_surface_state *state = view->wlr_surface->current;
+ struct wlr_surface_state *state = &view->wlr_surface->current;
struct wlr_box box = {
.x = 0, .y = 0,
.width = state->width, .height = state->height,