mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-05 13:05:59 +01:00
popup constraint handle empty output layout
This commit is contained in:
parent
bd828e23de
commit
67c8aec77f
1 changed files with 4 additions and 2 deletions
|
@ -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 a new issue