]> code.delx.au - gnu-emacs/blobdiff - src/nsselect.m
* nsselect.m (Fx_selection_exists_p): Just return Qnil if window system
[gnu-emacs] / src / nsselect.m
index f4713cb5e10c3e053740688af76e860d09f7856e..038849c0aed7ef2413c6766c0f65eab307a56ed6 100644 (file)
@@ -429,7 +429,9 @@ On Nextstep, TERMINAL is unused.  */)
   id pb;
   NSArray *types;
 
-  check_window_system (NULL);
+  if (!window_system_available (NULL))
+    return Qnil;
+
   CHECK_SYMBOL (selection);
   if (EQ (selection, Qnil)) selection = QPRIMARY;
   if (EQ (selection, Qt)) selection = QSECONDARY;