mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-05 07:15:31 -04:00
Prevent call to wlr_addon_find if addon list is invalid
This commit is contained in:
parent
21205f2f40
commit
831e3557a0
2 changed files with 4 additions and 3 deletions
2
client.h
2
client.h
|
|
@ -38,7 +38,7 @@ toplevel_from_wlr_surface(struct wlr_surface *s, Client **pc, LayerSurface **pl)
|
|||
struct wlr_xwayland_surface *xsurface;
|
||||
#endif
|
||||
|
||||
if (!s)
|
||||
if (!s || (!s->addons.addons.prev && !s->addons.addons.next))
|
||||
return -1;
|
||||
root_surface = wlr_surface_get_root_surface(s);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue