mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
backend/wayland: check if zxdg_toplevel_decoration_v1 is not NULL
This commit is contained in:
parent
217cf18a4b
commit
e7f1aa30dd
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *wlr_backend) {
|
||||||
output->zxdg_toplevel_decoration_v1 =
|
output->zxdg_toplevel_decoration_v1 =
|
||||||
zxdg_decoration_manager_v1_get_toplevel_decoration(
|
zxdg_decoration_manager_v1_get_toplevel_decoration(
|
||||||
backend->zxdg_decoration_manager_v1, output->xdg_toplevel);
|
backend->zxdg_decoration_manager_v1, output->xdg_toplevel);
|
||||||
if (!output->xdg_toplevel) {
|
if (!output->zxdg_toplevel_decoration_v1) {
|
||||||
wlr_log_errno(WLR_ERROR, "Could not get xdg toplevel decoration");
|
wlr_log_errno(WLR_ERROR, "Could not get xdg toplevel decoration");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue