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/wl_shell.c | |
parent | 5d1c5ff80b4e50db68fc4e918d0dc3c171a043ae (diff) | |
parent | 515d68231252194a8c230d26658fd316179704c1 (diff) |
Merge pull request #1076 from emersion/redesign-surface-state
surface: redesign state
Diffstat (limited to 'rootston/wl_shell.c')
-rw-r--r-- | rootston/wl_shell.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rootston/wl_shell.c b/rootston/wl_shell.c index d58f030a..02160773 100644 --- a/rootston/wl_shell.c +++ b/rootston/wl_shell.c @@ -158,8 +158,8 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { view_apply_damage(view); - int width = wlr_surface->current->width; - int height = wlr_surface->current->height; + int width = wlr_surface->current.width; + int height = wlr_surface->current.height; view_update_size(view, width, height); double x = view->x; @@ -236,8 +236,8 @@ void handle_wl_shell_surface(struct wl_listener *listener, void *data) { return; } view->type = ROOTS_WL_SHELL_VIEW; - view->width = surface->surface->current->width; - view->height = surface->surface->current->height; + view->width = surface->surface->current.width; + view->height = surface->surface->current.height; view->wl_shell_surface = surface; view->roots_wl_shell_surface = roots_surface; |