diff options
author | Drew DeVault <[email protected]> | 2018-07-01 09:46:02 -0400 |
---|---|---|
committer | emersion <[email protected]> | 2018-07-05 00:26:35 +0100 |
commit | d43500831a78580f59525144a0c9b034d4d399d0 (patch) | |
tree | aacb4197dcfc144fb5790eb2a7287649520c8fc7 /sway/desktop/xdg_shell.c | |
parent | dd869c158e083b20190b680b11a0b6356ba8a5e5 (diff) |
Updates per wlroots#1076
Diffstat (limited to 'sway/desktop/xdg_shell.c')
-rw-r--r-- | sway/desktop/xdg_shell.c | 4 |
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); |