diff options
author | Igor Ostrowski <igor.ostrowski@intel.com> | 2017-01-30 14:08:45 +0100 |
---|---|---|
committer | Pyry Haulos <phaulos@google.com> | 2017-02-06 15:38:51 -0500 |
commit | 7602b3b0be5909a6fd598cb6e8006ebb88bac290 (patch) | |
tree | baa16b5a1a6c97a5dcd655faceb6ee2011391847 /framework | |
parent | 704ed05511de62fdf5f9ceea01d8e4c26daf1964 (diff) | |
download | VK-GL-CTS-7602b3b0be5909a6fd598cb6e8006ebb88bac290.tar.gz VK-GL-CTS-7602b3b0be5909a6fd598cb6e8006ebb88bac290.tar.bz2 VK-GL-CTS-7602b3b0be5909a6fd598cb6e8006ebb88bac290.zip |
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
Diffstat (limited to 'framework')
-rw-r--r-- | framework/platform/X11/tcuX11Xcb.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/platform/X11/tcuX11Xcb.cpp b/framework/platform/X11/tcuX11Xcb.cpp index 41dbddb0f..c224c7526 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); } |