67int main(
int argc,
char **argv)
72 QAbstractEventDispatcher *eventDispatcher =
new QEventDispatcherGlib();
73 QCoreApplication::setEventDispatcher(eventDispatcher);
82 auto outputHandle = std::make_unique<FakeOutput>();
83 outputHandle->setMode(QSize(1024, 768), 60000);
84 outputHandle->setPhysicalSize(QSize(10, 10));
86 auto outputInterface = std::make_unique<OutputInterface>(&display, outputHandle.get());
89 const int pipe = startXServer();
99 eventDispatcher->processEvents(QEventLoop::WaitForMoreEvents);
102 }
while (select(pipe + 1, &rfds,
nullptr,
nullptr, &tv) == 0);
105 readDisplayFromPipe(pipe);
107 QGuiApplication app(argc, argv);
110 seat->setName(QStringLiteral(
"testSeat0"));