diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-05 13:34:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-05 13:34:49 -0700 |
commit | 7c6588d7ae0b260aedc61da58eb6bf153b35ca94 (patch) | |
tree | d86694ce602f1656a939aac8f5b06e1875c2f7d7 /rootston/desktop.c | |
parent | 5d1c5ff80b4e50db68fc4e918d0dc3c171a043ae (diff) | |
parent | 515d68231252194a8c230d26658fd316179704c1 (diff) |
Merge pull request #1076 from emersion/redesign-surface-state
surface: redesign state
Diffstat (limited to 'rootston/desktop.c')
-rw-r--r-- | rootston/desktop.c | 6 |
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, |