Fix regression in unit-test introduced with 62b6401175
I don't understand why, but this fixes the TestXcbWrapper::testTransientFor(). Failing code fragment in question: Window transientWindow(createWindow()); transientWindow.changeProperty(XCB_ATOM_WM_TRANSIENT_FOR, XCB_ATOM_WINDOW, 32, 1, &m_testWindow); // let's get another transient object TransientFor realTransient(transientWindow); QVERIFY(realTransient.getTransientFor(&compareWindow)); QCOMPARE(compareWindow, (xcb_window_t)m_testWindow); the QCOMPARE failed with one compareWindow being 0. It looks like the cast from Xcb::Window to xcb_window_t in the changeProperty failed. REVIEW: 124864
This commit is contained in:
parent
9c91f64bc0
commit
abc3c633f3
1 changed files with 1 additions and 1 deletions
|
@ -1420,11 +1420,11 @@ public:
|
|||
void kill();
|
||||
operator xcb_window_t() const;
|
||||
private:
|
||||
QRect m_logicGeometry;
|
||||
xcb_window_t doCreate(const QRect &geometry, uint16_t windowClass, uint32_t mask = 0, const uint32_t *values = NULL, xcb_window_t parent = rootWindow());
|
||||
void destroy();
|
||||
xcb_window_t m_window;
|
||||
bool m_destroy;
|
||||
QRect m_logicGeometry;
|
||||
};
|
||||
|
||||
inline
|
||||
|
|
Loading…
Reference in a new issue