mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
view.c: next_toplevel(): handle NULL pointer
This commit is contained in:
parent
cb9cb384e4
commit
49d2e029aa
2 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,8 @@ struct view *view_front_toplevel(struct server *server)
|
|||
|
||||
struct view *next_toplevel(struct view *current)
|
||||
{
|
||||
/* FIXME: write nr_toplevels() */
|
||||
if (!current)
|
||||
return NULL;
|
||||
struct view *view = current;
|
||||
do {
|
||||
view = wl_container_of(view->link.next, view, link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue