always send valid size geom when configuring xdg6 popups

sending 0x0 here when passed (which happens during initial commit)
breaks the universe
This commit is contained in:
Mike Blumenkrantz 2016-11-29 11:44:29 -05:00
parent 79d157f5d5
commit 632e4097b5
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ _e_xdg_shell_surface_configure_send(struct wl_resource *resource, uint32_t edges
shd = ec->comp_data->shell.data;
serial = wl_display_next_serial(e_comp_wl->wl.disp);
zxdg_popup_v6_send_configure(resource, ec->x - ec->parent->x, ec->y - ec->parent->y, width, height);
zxdg_popup_v6_send_configure(resource, ec->x - ec->parent->x, ec->y - ec->parent->y, width ?: ec->w, height ?: ec->h);
zxdg_surface_v6_send_configure(shd->surface, serial);
return;
}