gtk-primary-selection: fix segfault when no focus

master
emersion 6 years ago
parent bfa7f4ee0d
commit 658b590567
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

@ -232,6 +232,9 @@ static void device_send_selection(
struct wlr_gtk_primary_selection_device *device) {
struct wlr_seat_client *seat_client =
device->seat->keyboard_state.focused_client;
if (seat_client == NULL) {
return;
}
struct wl_resource *resource;
wl_resource_for_each(resource, &device->resources) {

Loading…
Cancel
Save