forked from enlightenment/efl
parent
c025996fac
commit
1f2de469f1
|
@ -414,10 +414,9 @@ _ecore_x_dnd_drag(int x, int y)
|
||||||
y1 = _source->rectangle.y;
|
y1 = _source->rectangle.y;
|
||||||
y2 = _source->rectangle.y + _source->rectangle.height;
|
y2 = _source->rectangle.y + _source->rectangle.height;
|
||||||
|
|
||||||
if (!(_source->await_status)
|
if ((!_source->await_status) ||
|
||||||
|| !(_source->suppress)
|
(!_source->suppress) ||
|
||||||
|| ((x < x1) || (x > x2)
|
((x < x1) || (x > x2) || (y < y1) || (y > y2)))
|
||||||
|| (y < y1) || (y > y2)))
|
|
||||||
{
|
{
|
||||||
xev.xclient.window = win;
|
xev.xclient.window = win;
|
||||||
xev.xclient.message_type = ECORE_X_ATOM_XDND_POSITION;
|
xev.xclient.message_type = ECORE_X_ATOM_XDND_POSITION;
|
||||||
|
|
|
@ -1082,8 +1082,8 @@ _ecore_x_event_handle_selection_request(XEvent *xevent)
|
||||||
xnotify.send_event = True;
|
xnotify.send_event = True;
|
||||||
xnotify.serial = 0;
|
xnotify.serial = 0;
|
||||||
|
|
||||||
if ((sd = _ecore_x_selection_get(xnotify.selection))
|
if ((sd = _ecore_x_selection_get(xnotify.selection)) &&
|
||||||
&& (sd->win == xevent->xselectionrequest.owner))
|
(sd->win == xevent->xselectionrequest.owner))
|
||||||
{
|
{
|
||||||
if (!_ecore_x_selection_convert(xnotify.selection, xnotify.target,
|
if (!_ecore_x_selection_convert(xnotify.selection, xnotify.target,
|
||||||
&data) == -1)
|
&data) == -1)
|
||||||
|
|
Loading…
Reference in New Issue