mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 18:45:58 +01:00
fix crash
This commit is contained in:
parent
e0bfec6ef2
commit
7e38de37a7
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ void renderSurface(struct wlr_surface* surface, int x, int y, void* data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (wlr_surface_is_xdg_surface(RDATA->surface)) {
|
if (RDATA->surface && wlr_surface_is_xdg_surface(RDATA->surface)) {
|
||||||
wlr_box geo;
|
wlr_box geo;
|
||||||
wlr_xdg_surface_get_geometry(wlr_xdg_surface_from_wlr_surface(RDATA->surface), &geo);
|
wlr_xdg_surface_get_geometry(wlr_xdg_surface_from_wlr_surface(RDATA->surface), &geo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue