From: Igor Ostrowski Date: Mon, 30 Jan 2017 13:08:45 +0000 (+0100) Subject: Fix XCB window dimensions setter X-Git-Tag: upstream/0.1.0~9^2~20^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7602b3b0be5909a6fd598cb6e8006ebb88bac290;p=platform%2Fupstream%2FVK-GL-CTS.git Fix XCB window dimensions setter Make sure that dimension setter catched appropriate property notify event. Components: Framework VK-GL-CTS issue: 134 Change-Id: I4630175dffea57a54375fe6900df7dd3aa5823d4 --- diff --git a/framework/platform/X11/tcuX11Xcb.cpp b/framework/platform/X11/tcuX11Xcb.cpp index 41dbddb..c224c75 100644 --- a/framework/platform/X11/tcuX11Xcb.cpp +++ b/framework/platform/X11/tcuX11Xcb.cpp @@ -150,8 +150,12 @@ void XcbWindow::setDimensions (int width, int height) { if (XCB_PROPERTY_NOTIFY == (event->response_type & ~0x80)) { - deFree(event); - break; + const xcb_property_notify_event_t* pnEvent = (xcb_property_notify_event_t*)event; + if (pnEvent->atom == XCB_ATOM_RESOLUTION) + { + deFree(event); + break; + } } deFree(event); }