diff options
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index d184489cbd8..40b6571e0ad 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1252,7 +1252,11 @@ x_get_foreign_selection (Lisp_Object selection_symbol, Lisp_Object target_type, | |||
| 1252 | else | 1252 | else |
| 1253 | x_wait_for_cell_change (reading_selection_reply, | 1253 | x_wait_for_cell_change (reading_selection_reply, |
| 1254 | make_timespec (secs, nsecs)); | 1254 | make_timespec (secs, nsecs)); |
| 1255 | TRACE1 (" Got event = %d", !NILP (XCAR (reading_selection_reply))); | 1255 | TRACE1 (" Got event = %s", (!NILP (XCAR (reading_selection_reply)) |
| 1256 | ? (SYMBOLP (XCAR (reading_selection_reply)) | ||
| 1257 | ? SSDATA (SYMBOL_NAME (XCAR (reading_selection_reply))) | ||
| 1258 | : "YES") | ||
| 1259 | : "NO")); | ||
| 1256 | 1260 | ||
| 1257 | if (NILP (XCAR (reading_selection_reply))) | 1261 | if (NILP (XCAR (reading_selection_reply))) |
| 1258 | error ("Timed out waiting for reply from selection owner"); | 1262 | error ("Timed out waiting for reply from selection owner"); |
| @@ -1947,7 +1951,7 @@ x_handle_selection_notify (const XSelectionEvent *event) | |||
| 1947 | if (event->selection != reading_which_selection) | 1951 | if (event->selection != reading_which_selection) |
| 1948 | return; | 1952 | return; |
| 1949 | 1953 | ||
| 1950 | TRACE0 ("Received SelectionNotify"); | 1954 | TRACE1 ("Received SelectionNotify: %d", (int) event->property); |
| 1951 | XSETCAR (reading_selection_reply, | 1955 | XSETCAR (reading_selection_reply, |
| 1952 | (event->property != 0 ? Qt : Qlambda)); | 1956 | (event->property != 0 ? Qt : Qlambda)); |
| 1953 | } | 1957 | } |