Function hasPrimarySelection

Wraps SDL_HasPrimarySelectionText (from SDL 2.26) which checks whether the primary selection exists and contains a non-empty text string

bool hasPrimarySelection() @trusted;

Returns

true if it exists and contains a non-empty string, otherwise false