popup constraint handle empty output layout
This commit is contained in:
parent
bd828e23de
commit
67c8aec77f
|
@ -76,8 +76,10 @@ static void popup_unconstrain(struct roots_xdg_popup_v6 *popup) {
|
||||||
|
|
||||||
struct wlr_output *output =
|
struct wlr_output *output =
|
||||||
wlr_output_layout_output_at(layout, dest_x, dest_y);
|
wlr_output_layout_output_at(layout, dest_x, dest_y);
|
||||||
// XXX: handle empty output layout
|
|
||||||
assert(output);
|
if (output == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int width = 0, height = 0;
|
int width = 0, height = 0;
|
||||||
wlr_output_effective_resolution(output, &width, &height);
|
wlr_output_effective_resolution(output, &width, &height);
|
||||||
|
|
Loading…
Reference in New Issue