Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/dont_crash_empty_deco.cpp
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 83 | { | |||
---|---|---|---|---|---|
99 | QVERIFY(windowCreatedSpy.isValid()); | 99 | QVERIFY(windowCreatedSpy.isValid()); | ||
100 | QVERIFY(windowCreatedSpy.wait()); | 100 | QVERIFY(windowCreatedSpy.wait()); | ||
101 | Client *client = windowCreatedSpy.first().first().value<Client*>(); | 101 | Client *client = windowCreatedSpy.first().first().value<Client*>(); | ||
102 | QVERIFY(client); | 102 | QVERIFY(client); | ||
103 | QCOMPARE(client->window(), w); | 103 | QCOMPARE(client->window(), w); | ||
104 | QVERIFY(client->isDecorated()); | 104 | QVERIFY(client->isDecorated()); | ||
105 | 105 | | |||
106 | // let's set a stupid geometry | 106 | // let's set a stupid geometry | ||
107 | client->setGeometry(0, 0, 0, 0); | 107 | client->setGeometry(QRect(0, 0, 0, 0)); | ||
108 | QCOMPARE(client->geometry(), QRect(0, 0, 0, 0)); | 108 | QCOMPARE(client->geometry(), QRect(0, 0, 0, 0)); | ||
109 | 109 | | |||
110 | // and destroy the window again | 110 | // and destroy the window again | ||
111 | xcb_unmap_window(c, w); | 111 | xcb_unmap_window(c, w); | ||
112 | xcb_destroy_window(c, w); | 112 | xcb_destroy_window(c, w); | ||
113 | xcb_flush(c); | 113 | xcb_flush(c); | ||
114 | xcb_disconnect(c); | 114 | xcb_disconnect(c); | ||
115 | 115 | | |||
Show All 9 Lines |