Ignore clipboard events if channel not loaded.
authorArmin Novak <armin.novak@thincast.com>
Wed, 23 Jan 2019 15:01:36 +0000 (16:01 +0100)
committerArmin Novak <armin.novak@thincast.com>
Wed, 23 Jan 2019 15:01:36 +0000 (16:01 +0100)
client/Wayland/wlf_cliprdr.c

index c2f77bb..2e2fba4 100644 (file)
@@ -281,6 +281,9 @@ BOOL wlf_cliprdr_handle_event(wfClipboard* clipboard, const UwacClipboardEvent*
        if (!clipboard || !event)
                return FALSE;
 
+       if (!clipboard->context)
+               return TRUE;
+
        switch (event->type)
        {
                case UWAC_EVENT_CLIPBOARD_AVAILABLE: