aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/xdg_shell.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-05 22:23:15 +0100
committerGitHub <noreply@github.com>2018-07-05 22:23:15 +0100
commit84109431f7d7919789839716d53346290b51d0f7 (patch)
tree3a5a9e5571ac61290412015bb64e2a764b785ce6 /sway/desktop/xdg_shell.c
parent9ba59cb3c9c1b7d5370fdd7ae37b65acd2221f25 (diff)
parent51b215ad5c0cadc4f1c10f407d1a2c375b46a769 (diff)
Merge pull request #2185 from swaywm/update-wlroots-1076
Updates per wlroots#1076
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r--sway/desktop/xdg_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index 2b634749..ac35a8d1 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -251,8 +251,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
view->natural_width = view->wlr_xdg_surface->geometry.width;
view->natural_height = view->wlr_xdg_surface->geometry.height;
if (!view->natural_width && !view->natural_height) {
- view->natural_width = view->wlr_xdg_surface->surface->current->width;
- view->natural_height = view->wlr_xdg_surface->surface->current->height;
+ view->natural_width = view->wlr_xdg_surface->surface->current.width;
+ view->natural_height = view->wlr_xdg_surface->surface->current.height;
}
view_map(view, view->wlr_xdg_surface->surface);