Update to wlroots 0.6.0

This commit is contained in:
Drew DeVault 2019-04-25 11:40:25 -04:00 committed by Jente Hidskes
parent 887c855a3b
commit 9354781f32
2 changed files with 14 additions and 13 deletions

View file

@ -94,15 +94,15 @@ popup_unconstrain(struct cg_xdg_popup *popup)
{
struct cg_view *view = popup->view_child.view;
struct wlr_output *output = view->server->output->wlr_output;
struct wlr_output_layout *output_layout = view->server->output_layout;
int width, height;
wlr_output_effective_resolution(output, &width, &height);
struct wlr_box *output_box = wlr_output_layout_get_box(output_layout, output);
struct wlr_box output_toplevel_box = {
.x = output->lx - view->x,
.y = output->ly - view->y,
.width = width,
.height = height
.x = output_box->x - view->x,
.y = output_box->y - view->y,
.width = output_box->width,
.height = output_box->height
};
wlr_xdg_popup_unconstrain_from_box(popup->wlr_popup, &output_toplevel_box);