diff --git a/kitty/screen.c b/kitty/screen.c index 9c55fb263..dc5a7415c 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1772,7 +1772,7 @@ screen_update_selection(Screen *self, index_type x, index_type y, bool ended) { break; } if (found) self->selection.end_x = end; - call_boss(set_primary_selection, NULL); + if (global_state.boss) call_boss(set_primary_selection, NULL); } static PyObject*