Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/windowgeometry_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 "abstract_client.h" | ||||
21 | #include "composite.h" | 22 | #include "composite.h" | ||
22 | #include "effects.h" | 23 | #include "effects.h" | ||
23 | #include "effectloader.h" | 24 | #include "effectloader.h" | ||
24 | #include "cursor.h" | 25 | #include "cursor.h" | ||
25 | #include "platform.h" | 26 | #include "platform.h" | ||
26 | #include "xdgshellclient.h" | | |||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | #include "effect_builtins.h" | 29 | #include "effect_builtins.h" | ||
30 | 30 | | |||
31 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
32 | 32 | | |||
33 | #include <KWayland/Client/buffer.h> | 33 | #include <KWayland/Client/buffer.h> | ||
34 | #include <KWayland/Client/surface.h> | 34 | #include <KWayland/Client/surface.h> | ||
Show All 10 Lines | 43 | private Q_SLOTS: | |||
45 | void init(); | 45 | void init(); | ||
46 | void cleanup(); | 46 | void cleanup(); | ||
47 | 47 | | |||
48 | void testStartup(); | 48 | void testStartup(); | ||
49 | }; | 49 | }; | ||
50 | 50 | | |||
51 | void WindowGeometryTest::initTestCase() | 51 | void WindowGeometryTest::initTestCase() | ||
52 | { | 52 | { | ||
53 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
54 | qRegisterMetaType<KWin::AbstractClient*>(); | 53 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
55 | qRegisterMetaType<KWin::Effect*>(); | 54 | qRegisterMetaType<KWin::Effect*>(); | ||
56 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 55 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
57 | QVERIFY(workspaceCreatedSpy.isValid()); | 56 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
58 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 57 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 58 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
60 | 59 | | |||
61 | // disable all effects - we don't want to have it interact with the rendering | 60 | // disable all effects - we don't want to have it interact with the rendering | ||
Show All 37 Lines |