diff options
| author | Eli Zaretskii | 2013-09-26 10:37:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-26 10:37:16 +0300 |
| commit | b87c4ff2817e71ca71b028792200b1e069a95e04 (patch) | |
| tree | bfe00c0655fa02078a9ab2c633ea06d90c4a2064 /src/xselect.c | |
| parent | bbc108377873aa6ed7cf21c731770103096eea39 (diff) | |
| parent | ba355de014b75ed104da4777f909db70d62f2357 (diff) | |
| download | emacs-b87c4ff2817e71ca71b028792200b1e069a95e04.tar.gz emacs-b87c4ff2817e71ca71b028792200b1e069a95e04.zip | |
Merge from trunk.
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/xselect.c b/src/xselect.c index e5f2e214fba..5eb263d8d0c 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -318,7 +318,7 @@ x_own_selection (Lisp_Object selection_name, Lisp_Object selection_value, | |||
| 318 | { | 318 | { |
| 319 | struct frame *f = XFRAME (frame); | 319 | struct frame *f = XFRAME (frame); |
| 320 | Window selecting_window = FRAME_X_WINDOW (f); | 320 | Window selecting_window = FRAME_X_WINDOW (f); |
| 321 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 321 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 322 | Display *display = dpyinfo->display; | 322 | Display *display = dpyinfo->display; |
| 323 | Time timestamp = last_event_timestamp; | 323 | Time timestamp = last_event_timestamp; |
| 324 | Atom selection_atom = symbol_to_x_atom (dpyinfo, selection_name); | 324 | Atom selection_atom = symbol_to_x_atom (dpyinfo, selection_name); |
| @@ -997,7 +997,7 @@ x_clear_frame_selections (struct frame *f) | |||
| 997 | { | 997 | { |
| 998 | Lisp_Object frame; | 998 | Lisp_Object frame; |
| 999 | Lisp_Object rest; | 999 | Lisp_Object rest; |
| 1000 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 1000 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 1001 | struct terminal *t = dpyinfo->terminal; | 1001 | struct terminal *t = dpyinfo->terminal; |
| 1002 | 1002 | ||
| 1003 | XSETFRAME (frame, f); | 1003 | XSETFRAME (frame, f); |
| @@ -1141,7 +1141,7 @@ wait_for_property_change (struct prop_location *location) | |||
| 1141 | /* Called from XTread_socket in response to a PropertyNotify event. */ | 1141 | /* Called from XTread_socket in response to a PropertyNotify event. */ |
| 1142 | 1142 | ||
| 1143 | void | 1143 | void |
| 1144 | x_handle_property_notify (XPropertyEvent *event) | 1144 | x_handle_property_notify (const XPropertyEvent *event) |
| 1145 | { | 1145 | { |
| 1146 | struct prop_location *rest; | 1146 | struct prop_location *rest; |
| 1147 | 1147 | ||
| @@ -1185,7 +1185,7 @@ x_get_foreign_selection (Lisp_Object selection_symbol, Lisp_Object target_type, | |||
| 1185 | Lisp_Object time_stamp, Lisp_Object frame) | 1185 | Lisp_Object time_stamp, Lisp_Object frame) |
| 1186 | { | 1186 | { |
| 1187 | struct frame *f = XFRAME (frame); | 1187 | struct frame *f = XFRAME (frame); |
| 1188 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 1188 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 1189 | Display *display = dpyinfo->display; | 1189 | Display *display = dpyinfo->display; |
| 1190 | Window requestor_window = FRAME_X_WINDOW (f); | 1190 | Window requestor_window = FRAME_X_WINDOW (f); |
| 1191 | Time requestor_time = last_event_timestamp; | 1191 | Time requestor_time = last_event_timestamp; |
| @@ -1888,7 +1888,7 @@ clean_local_selection_data (Lisp_Object obj) | |||
| 1888 | We store t there if the reply is successful, lambda if not. */ | 1888 | We store t there if the reply is successful, lambda if not. */ |
| 1889 | 1889 | ||
| 1890 | void | 1890 | void |
| 1891 | x_handle_selection_notify (XSelectionEvent *event) | 1891 | x_handle_selection_notify (const XSelectionEvent *event) |
| 1892 | { | 1892 | { |
| 1893 | if (event->requestor != reading_selection_window) | 1893 | if (event->requestor != reading_selection_window) |
| 1894 | return; | 1894 | return; |
| @@ -2009,7 +2009,7 @@ On Nextstep, TIME-STAMP and TERMINAL are unused. */) | |||
| 2009 | error ("X selection unavailable for this frame"); | 2009 | error ("X selection unavailable for this frame"); |
| 2010 | 2010 | ||
| 2011 | val = x_get_local_selection (selection_symbol, target_type, 1, | 2011 | val = x_get_local_selection (selection_symbol, target_type, 1, |
| 2012 | FRAME_X_DISPLAY_INFO (f)); | 2012 | FRAME_DISPLAY_INFO (f)); |
| 2013 | 2013 | ||
| 2014 | if (NILP (val) && FRAME_LIVE_P (f)) | 2014 | if (NILP (val) && FRAME_LIVE_P (f)) |
| 2015 | { | 2015 | { |
| @@ -2056,7 +2056,7 @@ On MS-DOS, all this does is return non-nil if we own the selection. */) | |||
| 2056 | if (!f) | 2056 | if (!f) |
| 2057 | return Qnil; | 2057 | return Qnil; |
| 2058 | 2058 | ||
| 2059 | dpyinfo = FRAME_X_DISPLAY_INFO (f); | 2059 | dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2060 | CHECK_SYMBOL (selection); | 2060 | CHECK_SYMBOL (selection); |
| 2061 | 2061 | ||
| 2062 | /* Don't disown the selection when we're not the owner. */ | 2062 | /* Don't disown the selection when we're not the owner. */ |
| @@ -2108,7 +2108,7 @@ On Nextstep, TERMINAL is unused. */) | |||
| 2108 | if (EQ (selection, Qnil)) selection = QPRIMARY; | 2108 | if (EQ (selection, Qnil)) selection = QPRIMARY; |
| 2109 | if (EQ (selection, Qt)) selection = QSECONDARY; | 2109 | if (EQ (selection, Qt)) selection = QSECONDARY; |
| 2110 | 2110 | ||
| 2111 | if (f && !NILP (LOCAL_SELECTION (selection, FRAME_X_DISPLAY_INFO (f)))) | 2111 | if (f && !NILP (LOCAL_SELECTION (selection, FRAME_DISPLAY_INFO (f)))) |
| 2112 | return Qt; | 2112 | return Qt; |
| 2113 | else | 2113 | else |
| 2114 | return Qnil; | 2114 | return Qnil; |
| @@ -2141,7 +2141,7 @@ On Nextstep, TERMINAL is unused. */) | |||
| 2141 | if (!f) | 2141 | if (!f) |
| 2142 | return Qnil; | 2142 | return Qnil; |
| 2143 | 2143 | ||
| 2144 | dpyinfo = FRAME_X_DISPLAY_INFO (f); | 2144 | dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2145 | 2145 | ||
| 2146 | if (!NILP (LOCAL_SELECTION (selection, dpyinfo))) | 2146 | if (!NILP (LOCAL_SELECTION (selection, dpyinfo))) |
| 2147 | return Qt; | 2147 | return Qt; |
| @@ -2162,7 +2162,7 @@ static Lisp_Object | |||
| 2162 | x_clipboard_manager_save (Lisp_Object frame) | 2162 | x_clipboard_manager_save (Lisp_Object frame) |
| 2163 | { | 2163 | { |
| 2164 | struct frame *f = XFRAME (frame); | 2164 | struct frame *f = XFRAME (frame); |
| 2165 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 2165 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2166 | Atom data = dpyinfo->Xatom_UTF8_STRING; | 2166 | Atom data = dpyinfo->Xatom_UTF8_STRING; |
| 2167 | 2167 | ||
| 2168 | XChangeProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 2168 | XChangeProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| @@ -2212,7 +2212,7 @@ x_clipboard_manager_save_frame (Lisp_Object frame) | |||
| 2212 | && (f = XFRAME (frame), FRAME_X_P (f)) | 2212 | && (f = XFRAME (frame), FRAME_X_P (f)) |
| 2213 | && FRAME_LIVE_P (f)) | 2213 | && FRAME_LIVE_P (f)) |
| 2214 | { | 2214 | { |
| 2215 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 2215 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2216 | Lisp_Object local_selection | 2216 | Lisp_Object local_selection |
| 2217 | = LOCAL_SELECTION (QCLIPBOARD, dpyinfo); | 2217 | = LOCAL_SELECTION (QCLIPBOARD, dpyinfo); |
| 2218 | 2218 | ||
| @@ -2458,7 +2458,7 @@ FRAME is on. If FRAME is nil, the selected frame is used. */) | |||
| 2458 | Atom x_atom; | 2458 | Atom x_atom; |
| 2459 | struct frame *f = decode_window_system_frame (frame); | 2459 | struct frame *f = decode_window_system_frame (frame); |
| 2460 | ptrdiff_t i; | 2460 | ptrdiff_t i; |
| 2461 | struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); | 2461 | struct x_display_info *dpyinfo = FRAME_DISPLAY_INFO (f); |
| 2462 | 2462 | ||
| 2463 | 2463 | ||
| 2464 | if (SYMBOLP (atom)) | 2464 | if (SYMBOLP (atom)) |
| @@ -2488,7 +2488,7 @@ FRAME is on. If FRAME is nil, the selected frame is used. */) | |||
| 2488 | /* Convert an XClientMessageEvent to a Lisp event of type DRAG_N_DROP_EVENT. */ | 2488 | /* Convert an XClientMessageEvent to a Lisp event of type DRAG_N_DROP_EVENT. */ |
| 2489 | 2489 | ||
| 2490 | int | 2490 | int |
| 2491 | x_handle_dnd_message (struct frame *f, XClientMessageEvent *event, | 2491 | x_handle_dnd_message (struct frame *f, const XClientMessageEvent *event, |
| 2492 | struct x_display_info *dpyinfo, struct input_event *bufp) | 2492 | struct x_display_info *dpyinfo, struct input_event *bufp) |
| 2493 | { | 2493 | { |
| 2494 | Lisp_Object vec; | 2494 | Lisp_Object vec; |