summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorrephorm <rephorm>2006-12-13 19:47:17 +0000
committerrephorm <rephorm@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2006-12-13 19:47:17 +0000
commit73af9d0e828257158869204ac35edf09fd3fb47c (patch)
tree4da689735752b5a3a07223abb78ce28ac15eb1e7 /legacy
parent11296682318b70474111d2b73dfac544514ee97b (diff)
send proper timestamp to along with selection notify
(fixes pasting into xterm) SVN revision: 27428
Diffstat (limited to 'legacy')
-rw-r--r--legacy/ecore/src/lib/ecore_x/Ecore_X.h2
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_events.c3
-rw-r--r--legacy/ecore/src/lib/ecore_x/ecore_x_selection.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/legacy/ecore/src/lib/ecore_x/Ecore_X.h b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
index aa24beaa49..912e3be15f 100644
--- a/legacy/ecore/src/lib/ecore_x/Ecore_X.h
+++ b/legacy/ecore/src/lib/ecore_x/Ecore_X.h
@@ -990,7 +990,7 @@ EAPI int ecore_x_error_code_get(void);
990EAPI void ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask); 990EAPI void ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask);
991EAPI void ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask); 991EAPI void ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask);
992 992
993EAPI int ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property); 993EAPI int ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property, Ecore_X_Time time);
994EAPI int ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size); 994EAPI int ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size);
995EAPI int ecore_x_selection_primary_clear(void); 995EAPI int ecore_x_selection_primary_clear(void);
996EAPI int ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size); 996EAPI int ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size);
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
index f3247d4a27..5b87f3476a 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c
@@ -1155,7 +1155,8 @@ _ecore_x_event_handle_selection_request(XEvent *xevent)
1155 ecore_x_selection_notify_send(xevent->xselectionrequest.requestor, 1155 ecore_x_selection_notify_send(xevent->xselectionrequest.requestor,
1156 xevent->xselectionrequest.selection, 1156 xevent->xselectionrequest.selection,
1157 xevent->xselectionrequest.target, 1157 xevent->xselectionrequest.target,
1158 property); 1158 property,
1159 xevent->xselectionrequest.time);
1159 } 1160 }
1160 } 1161 }
1161 return; 1162 return;
diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c b/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
index c761923032..e7e9d712f6 100644
--- a/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
+++ b/legacy/ecore/src/lib/ecore_x/ecore_x_selection.c
@@ -426,7 +426,7 @@ ecore_x_selection_converter_del(char *target)
426} 426}
427 427
428EAPI int 428EAPI int
429ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property) 429ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property, Ecore_X_Time time)
430{ 430{
431 XEvent xev; 431 XEvent xev;
432 XSelectionEvent xnotify; 432 XSelectionEvent xnotify;
@@ -437,7 +437,7 @@ ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection,
437 xnotify.selection = selection; 437 xnotify.selection = selection;
438 xnotify.target = target; 438 xnotify.target = target;
439 xnotify.property = property; 439 xnotify.property = property;
440 xnotify.time = CurrentTime; 440 xnotify.time = time;
441 xnotify.send_event = True; 441 xnotify.send_event = True;
442 xnotify.serial = 0; 442 xnotify.serial = 0;
443 443