forked from enlightenment/efl
send proper timestamp to along with selection notify
(fixes pasting into xterm) SVN revision: 27428
This commit is contained in:
parent
1129668231
commit
73af9d0e82
|
@ -990,7 +990,7 @@ EAPI int ecore_x_error_code_get(void);
|
||||||
EAPI void ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask);
|
EAPI void ecore_x_event_mask_set(Ecore_X_Window w, Ecore_X_Event_Mask mask);
|
||||||
EAPI void ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask);
|
EAPI void ecore_x_event_mask_unset(Ecore_X_Window w, Ecore_X_Event_Mask mask);
|
||||||
|
|
||||||
EAPI int ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property);
|
EAPI 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);
|
||||||
EAPI int ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size);
|
EAPI int ecore_x_selection_primary_set(Ecore_X_Window w, const void *data, int size);
|
||||||
EAPI int ecore_x_selection_primary_clear(void);
|
EAPI int ecore_x_selection_primary_clear(void);
|
||||||
EAPI int ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size);
|
EAPI int ecore_x_selection_secondary_set(Ecore_X_Window w, const void *data, int size);
|
||||||
|
|
|
@ -1155,7 +1155,8 @@ _ecore_x_event_handle_selection_request(XEvent *xevent)
|
||||||
ecore_x_selection_notify_send(xevent->xselectionrequest.requestor,
|
ecore_x_selection_notify_send(xevent->xselectionrequest.requestor,
|
||||||
xevent->xselectionrequest.selection,
|
xevent->xselectionrequest.selection,
|
||||||
xevent->xselectionrequest.target,
|
xevent->xselectionrequest.target,
|
||||||
property);
|
property,
|
||||||
|
xevent->xselectionrequest.time);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -426,7 +426,7 @@ ecore_x_selection_converter_del(char *target)
|
||||||
}
|
}
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection, Ecore_X_Atom target, Ecore_X_Atom property)
|
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)
|
||||||
{
|
{
|
||||||
XEvent xev;
|
XEvent xev;
|
||||||
XSelectionEvent xnotify;
|
XSelectionEvent xnotify;
|
||||||
|
@ -437,7 +437,7 @@ ecore_x_selection_notify_send(Ecore_X_Window requestor, Ecore_X_Atom selection,
|
||||||
xnotify.selection = selection;
|
xnotify.selection = selection;
|
||||||
xnotify.target = target;
|
xnotify.target = target;
|
||||||
xnotify.property = property;
|
xnotify.property = property;
|
||||||
xnotify.time = CurrentTime;
|
xnotify.time = time;
|
||||||
xnotify.send_event = True;
|
xnotify.send_event = True;
|
||||||
xnotify.serial = 0;
|
xnotify.serial = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue