s/BUG_ON/assert/

This commit is contained in:
Johan Malm 2020-09-28 20:53:59 +01:00
parent 96e05057a3
commit 581f4ea0c3
8 changed files with 13 additions and 26 deletions

View file

@ -1,3 +1,4 @@
#include <assert.h>
#include "labwc.h"
struct xdg_deco {
@ -73,7 +74,7 @@ static void
handle_commit(struct wl_listener *listener, void *data)
{
struct view *view = wl_container_of(listener, view, commit);
BUG_ON(!view->surface);
assert(view->surface);
view->w = view->surface->current.width;
view->h = view->surface->current.height;
}