Mercurial > emacs
comparison src/xselect.c @ 9680:14a8113d8a8b
(Fx_selection_exists_p): If selected_frame isn't an x frame, return nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 24 Oct 1994 21:59:55 +0000 |
parents | a03e0a600f3f |
children | eea337e3af4e |
comparison
equal
deleted
inserted
replaced
9679:363a1bef4ddb | 9680:14a8113d8a8b |
---|---|
1812 { | 1812 { |
1813 Window owner; | 1813 Window owner; |
1814 Atom atom; | 1814 Atom atom; |
1815 Display *dpy; | 1815 Display *dpy; |
1816 | 1816 |
1817 check_x (); | 1817 /* It should be safe to call this before we have an X frame. */ |
1818 if (FRAME_X_P (selected_frame)) | |
1819 return Qnil; | |
1820 | |
1818 dpy = FRAME_X_DISPLAY (selected_frame); | 1821 dpy = FRAME_X_DISPLAY (selected_frame); |
1819 CHECK_SYMBOL (selection, 0); | 1822 CHECK_SYMBOL (selection, 0); |
1820 if (!NILP (Fx_selection_owner_p (selection))) | 1823 if (!NILP (Fx_selection_owner_p (selection))) |
1821 return Qt; | 1824 return Qt; |
1822 if (EQ (selection, Qnil)) selection = QPRIMARY; | 1825 if (EQ (selection, Qnil)) selection = QPRIMARY; |