clipboard: Don't crash when data is requested from NULL window
This could happen if data was requested from a separate screen now that multi-screen is no longer supported. Ideally, we'd want to support copying to other screens, but that requires solving in GDK as that's X-specific so cannot be well abstracted by GDK (without the reintroduction of multiple screens). https://bugzilla.gnome.org/show_bug.cgi?id=719314
This commit is contained in:
@@ -2294,6 +2294,9 @@ _gtk_selection_request (GtkWidget *widget,
|
||||
int i;
|
||||
gulong selection_max_size;
|
||||
|
||||
if (event->requestor == NULL)
|
||||
return;
|
||||
|
||||
if (initialize)
|
||||
gtk_selection_init ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user