mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-02-22 04:02:30 +00:00
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 =
|
||||
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;
|
||||
wlr_output_effective_resolution(output, &width, &height);
|
||||
|
Loading…
Reference in New Issue
Block a user