Added assert

This commit is contained in:
Armin Novak 2019-01-22 10:52:24 +01:00
parent 68b5d47d9a
commit ceeccd34e8
1 changed files with 2 additions and 1 deletions

View File

@ -40,7 +40,8 @@ static void data_offer_offer(void* data, struct wl_data_offer* data_offer,
{
UwacSeat* seat = (UwacSeat*)data;
if (seat && !seat->ignore_announcement)
assert(seat);
if (!seat->ignore_announcement)
{
UwacClipboardEvent* event = (UwacClipboardEvent*)UwacDisplayNewEvent(seat->display,
UWAC_EVENT_CLIPBOARD_OFFER);