st: Bail out on clipboard requests if there is no text.
If a selection request happens through foreign means, the selected text is NULL, and a crash happens. https://bugzilla.gnome.org/show_bug.cgi?id=738314
This commit is contained in:
parent
72c6f0025d
commit
eaec459ee9
@ -119,7 +119,8 @@ st_clipboard_provider (GdkXEvent *xevent_p,
|
||||
XSelectionRequestEvent *req_event;
|
||||
GdkDisplay *display = gdk_display_get_default ();
|
||||
|
||||
if (xev->type != SelectionRequest)
|
||||
if (xev->type != SelectionRequest ||
|
||||
!clipboard->priv->clipboard_text)
|
||||
return GDK_FILTER_CONTINUE;
|
||||
|
||||
req_event = &xev->xselectionrequest;
|
||||
|
Loading…
Reference in New Issue
Block a user