diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c b/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c index b6284a55fb..012d22af17 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_dnd.c @@ -414,10 +414,9 @@ _ecore_x_dnd_drag(int x, int y) y1 = _source->rectangle.y; y2 = _source->rectangle.y + _source->rectangle.height; - if (!(_source->await_status) - || !(_source->suppress) - || ((x < x1) || (x > x2) - || (y < y1) || (y > y2))) + if ((!_source->await_status) || + (!_source->suppress) || + ((x < x1) || (x > x2) || (y < y1) || (y > y2))) { xev.xclient.window = win; xev.xclient.message_type = ECORE_X_ATOM_XDND_POSITION; 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 db08674761..3f834bef48 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_events.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_events.c @@ -1082,8 +1082,8 @@ _ecore_x_event_handle_selection_request(XEvent *xevent) xnotify.send_event = True; xnotify.serial = 0; - if ((sd = _ecore_x_selection_get(xnotify.selection)) - && (sd->win == xevent->xselectionrequest.owner)) + if ((sd = _ecore_x_selection_get(xnotify.selection)) && + (sd->win == xevent->xselectionrequest.owner)) { if (!_ecore_x_selection_convert(xnotify.selection, xnotify.target, &data) == -1)