aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2006-10-19 07:17:42 +0000
committerJan Djärv2006-10-19 07:17:42 +0000
commit866f85184a7d583883f1d1dd4ce2d1d8dbf77884 (patch)
treea8b2245c29677a9e4cc66df668dd78e15ae35088 /src
parent1df04e22ca58fe4051743a16d2ddf46ba4283c08 (diff)
downloademacs-866f85184a7d583883f1d1dd4ce2d1d8dbf77884.tar.gz
emacs-866f85184a7d583883f1d1dd4ce2d1d8dbf77884.zip
* xselect.c (x_handle_selection_request): If the converted_selection
is NIL or XCDR (converted_selection) is NIL, decline the request.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xselect.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ce3c7d1435b..9b33d6c2d70 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-10-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xselect.c (x_handle_selection_request): If the converted_selection
4 is NIL or XCDR (converted_selection) is NIL, decline the request.
5
12006-10-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 62006-10-16 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2 7
3 * gtkutil.c (get_utf8_string): Remove warnings with casts. 8 * gtkutil.c (get_utf8_string): Remove warnings with casts.
diff --git a/src/xselect.c b/src/xselect.c
index 013a52dbdb1..022226946a9 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -956,6 +956,12 @@ x_handle_selection_request (event)
956 Atom type; 956 Atom type;
957 int nofree; 957 int nofree;
958 958
959 if (CONSP (converted_selection) && NILP (XCDR (converted_selection)))
960 {
961 x_decline_selection_request (event);
962 goto DONE2;
963 }
964
959 lisp_data_to_selection_data (SELECTION_EVENT_DISPLAY (event), 965 lisp_data_to_selection_data (SELECTION_EVENT_DISPLAY (event),
960 converted_selection, 966 converted_selection,
961 &data, &type, &size, &format, &nofree); 967 &data, &type, &size, &format, &nofree);
@@ -971,6 +977,8 @@ x_handle_selection_request (event)
971 if (!nofree) 977 if (!nofree)
972 xfree (data); 978 xfree (data);
973 } 979 }
980
981 DONE2:
974 unbind_to (count, Qnil); 982 unbind_to (count, Qnil);
975 983
976 DONE: 984 DONE: