Skip to content

Commit

Permalink
explicitly return -1 in the first check in toplevel_from_wlr_surface
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 committed Nov 17, 2023
1 parent b174005 commit caac2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ toplevel_from_wlr_surface(struct wlr_surface *s, Client **pc, LayerSurface **pl)
#endif

if (!s)
return type;
return -1;
root_surface = wlr_surface_get_root_surface(s);

#ifdef XWAYLAND
Expand Down

0 comments on commit caac2d6

Please sign in to comment.