MCPcopy Create free account
hub / github.com/deskflow/deskflow / createScreen

Method createScreen

src/lib/deskflow/ClientApp.cpp:105–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105deskflow::Screen *ClientApp::createScreen()
106{
107#if WINAPI_MSWINDOWS
108 return new deskflow::Screen(
109 new MSWindowsScreen(
110 false, Settings::value(Settings::Core::UseHooks).toBool(), getEvents(),
111 Settings::value(Settings::Client::LanguageSync).toBool()
112 ),
113 getEvents()
114 );
115#endif
116
117#if defined(WINAPI_XWINDOWS) or defined(WINAPI_LIBEI)
118 if (deskflow::platform::isWayland()) {
119#if WINAPI_LIBEI
120 LOG_INFO("using ei screen for wayland");
121 return new deskflow::Screen(new deskflow::EiScreen(false, getEvents(), true), getEvents());
122#else
123 throw XNoEiSupport();
124#endif
125 }
126#endif
127
128#if WINAPI_XWINDOWS
129 LOG_INFO("using legacy x windows screen");
130 return new deskflow::Screen(
131 new XWindowsScreen(qPrintable(Settings::value(Settings::Core::Display).toString()), false, getEvents()),
132 getEvents()
133 );
134
135#endif
136
137#if WINAPI_CARBON
138 return new deskflow::Screen(
139 new OSXScreen(getEvents(), false, Settings::value(Settings::Client::LanguageSync).toBool()), getEvents()
140 );
141#endif
142}
143
144deskflow::Screen *ClientApp::openClientScreen()
145{

Callers

nothing calls this directly

Calls 3

isWaylandFunction · 0.85
XNoEiSupportClass · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected