summaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell_v6.c
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-07-06 16:22:13 +0100
committerGitHub <[email protected]>2018-07-06 16:22:13 +0100
commitb3c55dd909b070625c9bfcebcb89cb8463e2ffc9 (patch)
tree714db24403e159b89cf5eaa59ddbd6cccd033947 /sway/desktop/xdg_shell_v6.c
parent7ef08ffbe6dc9a0b35cd9cad0b689136e3515886 (diff)
parentb8ee88344a5e2869fd3ce04762eda305dc5bf62e (diff)
Merge branch 'master' into leaks
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
-rw-r--r--sway/desktop/xdg_shell_v6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c
index 2f0730e4..56bbb244 100644
--- a/sway/desktop/xdg_shell_v6.c
+++ b/sway/desktop/xdg_shell_v6.c
@@ -246,8 +246,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
view->natural_width = view->wlr_xdg_surface_v6->geometry.width;
view->natural_height = view->wlr_xdg_surface_v6->geometry.height;
if (!view->natural_width && !view->natural_height) {
- view->natural_width = view->wlr_xdg_surface_v6->surface->current->width;
- view->natural_height = view->wlr_xdg_surface_v6->surface->current->height;
+ view->natural_width = view->wlr_xdg_surface_v6->surface->current.width;
+ view->natural_height = view->wlr_xdg_surface_v6->surface->current.height;
}
view_map(view, view->wlr_xdg_surface_v6->surface);