diff options
Diffstat (limited to 'src/nsselect.m')
| -rw-r--r-- | src/nsselect.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nsselect.m b/src/nsselect.m index f4713cb5e10..038849c0aed 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -429,7 +429,9 @@ On Nextstep, TERMINAL is unused. */) | |||
| 429 | id pb; | 429 | id pb; |
| 430 | NSArray *types; | 430 | NSArray *types; |
| 431 | 431 | ||
| 432 | check_window_system (NULL); | 432 | if (!window_system_available (NULL)) |
| 433 | return Qnil; | ||
| 434 | |||
| 433 | CHECK_SYMBOL (selection); | 435 | CHECK_SYMBOL (selection); |
| 434 | if (EQ (selection, Qnil)) selection = QPRIMARY; | 436 | if (EQ (selection, Qnil)) selection = QPRIMARY; |
| 435 | if (EQ (selection, Qt)) selection = QSECONDARY; | 437 | if (EQ (selection, Qt)) selection = QSECONDARY; |