Ecore_X (xcb): Make sure we have a valid connection before checking

source state.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77694
This commit is contained in:
Christopher Michael 2012-10-10 06:47:54 +00:00 committed by Christopher Michael
parent aad2041e55
commit 922030ca72
1 changed files with 2 additions and 2 deletions

View File

@ -529,11 +529,11 @@ _ecore_xcb_dnd_drag(Ecore_X_Window root,
Ecore_X_Xdnd_Position pos;
int num = 0;
if (_source->state != ECORE_X_DND_SOURCE_DRAGGING) return;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
CHECK_XCB_CONN;
if (_source->state != ECORE_X_DND_SOURCE_DRAGGING) return;
memset(&ev, 0, sizeof(xcb_client_message_event_t));
ev.response_type = XCB_CLIENT_MESSAGE;