Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show All 19 Lines | |||||
20 | #include "main_wayland.h" | 20 | #include "main_wayland.h" | ||
21 | #include "composite.h" | 21 | #include "composite.h" | ||
22 | #include "virtualkeyboard.h" | 22 | #include "virtualkeyboard.h" | ||
23 | #include "workspace.h" | 23 | #include "workspace.h" | ||
24 | #include <config-kwin.h> | 24 | #include <config-kwin.h> | ||
25 | // kwin | 25 | // kwin | ||
26 | #include "platform.h" | 26 | #include "platform.h" | ||
27 | #include "effects.h" | 27 | #include "effects.h" | ||
28 | #include "tabletmodemanager.h" | ||||
28 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
29 | #include "xcbutils.h" | 30 | #include "xcbutils.h" | ||
30 | 31 | | |||
31 | // KWayland | 32 | // KWayland | ||
32 | #include <KWayland/Server/display.h> | 33 | #include <KWayland/Server/display.h> | ||
33 | #include <KWayland/Server/seat_interface.h> | 34 | #include <KWayland/Server/seat_interface.h> | ||
34 | // KDE | 35 | // KDE | ||
35 | #include <KLocalizedString> | 36 | #include <KLocalizedString> | ||
▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 157 | { | |||
163 | 164 | | |||
164 | // try creating the Wayland Backend | 165 | // try creating the Wayland Backend | ||
165 | createInput(); | 166 | createInput(); | ||
166 | // now libinput thread has been created, adjust scheduler to not leak into other processes | 167 | // now libinput thread has been created, adjust scheduler to not leak into other processes | ||
167 | gainRealTime(RealTimeFlags::ResetOnFork); | 168 | gainRealTime(RealTimeFlags::ResetOnFork); | ||
168 | 169 | | |||
169 | VirtualKeyboard::create(this); | 170 | VirtualKeyboard::create(this); | ||
170 | createBackend(); | 171 | createBackend(); | ||
172 | TabletModeManager::create(this); | ||||
171 | } | 173 | } | ||
172 | 174 | | |||
173 | void ApplicationWayland::createBackend() | 175 | void ApplicationWayland::createBackend() | ||
174 | { | 176 | { | ||
175 | connect(platform(), &Platform::screensQueried, this, &ApplicationWayland::continueStartupWithScreens); | 177 | connect(platform(), &Platform::screensQueried, this, &ApplicationWayland::continueStartupWithScreens); | ||
176 | connect(platform(), &Platform::initFailed, this, | 178 | connect(platform(), &Platform::initFailed, this, | ||
177 | [] () { | 179 | [] () { | ||
178 | std::cerr << "FATAL ERROR: backend failed to initialize, exiting now" << std::endl; | 180 | std::cerr << "FATAL ERROR: backend failed to initialize, exiting now" << std::endl; | ||
▲ Show 20 Lines • Show All 659 Lines • Show Last 20 Lines |