Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/wobbly_shade_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "client.h" | 21 | #include "x11client.h" | ||
22 | #include "composite.h" | 22 | #include "composite.h" | ||
23 | #include "cursor.h" | 23 | #include "cursor.h" | ||
24 | #include "effects.h" | 24 | #include "effects.h" | ||
25 | #include "effectloader.h" | 25 | #include "effectloader.h" | ||
26 | #include "cursor.h" | 26 | #include "cursor.h" | ||
27 | #include "platform.h" | 27 | #include "platform.h" | ||
28 | #include "xdgshellclient.h" | 28 | #include "xdgshellclient.h" | ||
29 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
▲ Show 20 Lines • Show All 104 Lines • ▼ Show 20 Line(s) | 113 | { | |||
134 | xcb_icccm_set_wm_normal_hints(c.data(), w, &hints); | 134 | xcb_icccm_set_wm_normal_hints(c.data(), w, &hints); | ||
135 | xcb_map_window(c.data(), w); | 135 | xcb_map_window(c.data(), w); | ||
136 | xcb_flush(c.data()); | 136 | xcb_flush(c.data()); | ||
137 | 137 | | |||
138 | // we should get a client for it | 138 | // we should get a client for it | ||
139 | QSignalSpy windowCreatedSpy(workspace(), &Workspace::clientAdded); | 139 | QSignalSpy windowCreatedSpy(workspace(), &Workspace::clientAdded); | ||
140 | QVERIFY(windowCreatedSpy.isValid()); | 140 | QVERIFY(windowCreatedSpy.isValid()); | ||
141 | QVERIFY(windowCreatedSpy.wait()); | 141 | QVERIFY(windowCreatedSpy.wait()); | ||
142 | Client *client = windowCreatedSpy.first().first().value<Client*>(); | 142 | X11Client *client = windowCreatedSpy.first().first().value<X11Client *>(); | ||
143 | QVERIFY(client); | 143 | QVERIFY(client); | ||
144 | QCOMPARE(client->window(), w); | 144 | QCOMPARE(client->window(), w); | ||
145 | QVERIFY(client->isDecorated()); | 145 | QVERIFY(client->isDecorated()); | ||
146 | QVERIFY(client->isShadeable()); | 146 | QVERIFY(client->isShadeable()); | ||
147 | QVERIFY(!client->isShade()); | 147 | QVERIFY(!client->isShade()); | ||
148 | QVERIFY(client->isActive()); | 148 | QVERIFY(client->isActive()); | ||
149 | 149 | | |||
150 | QSignalSpy windowShownSpy(client, &AbstractClient::windowShown); | 150 | QSignalSpy windowShownSpy(client, &AbstractClient::windowShown); | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |