xwayland: Rename XwaylandLauncher::started to ready

"ready" better describes what the signal notifies about.
wilder/Plasma/6.3
Vlad Zahorodnii 1 year ago
parent 0e52bf1fb6
commit 6a283ed4cb
  1. 2
      src/xwayland/xwayland.cpp
  2. 4
      src/xwayland/xwaylandlauncher.cpp
  3. 6
      src/xwayland/xwaylandlauncher.h

@ -485,7 +485,7 @@ Xwayland::Xwayland(Application *app)
: m_app(app)
, m_launcher(new XwaylandLauncher(this))
{
connect(m_launcher, &XwaylandLauncher::started, this, &Xwayland::handleXwaylandReady);
connect(m_launcher, &XwaylandLauncher::ready, this, &Xwayland::handleXwaylandReady);
connect(m_launcher, &XwaylandLauncher::finished, this, &Xwayland::handleXwaylandFinished);
connect(m_launcher, &XwaylandLauncher::errorOccurred, this, &Xwayland::errorOccurred);
}

@ -96,7 +96,7 @@ void XwaylandLauncher::enable()
start();
}
});
connect(this, &XwaylandLauncher::started, notifier, [notifier]() {
connect(this, &XwaylandLauncher::ready, notifier, [notifier]() {
notifier->setEnabled(false);
});
connect(this, &XwaylandLauncher::finished, notifier, [this, notifier]() {
@ -212,7 +212,7 @@ bool XwaylandLauncher::start()
m_readyNotifier = new QSocketNotifier(displayfd[0], QSocketNotifier::Read, this);
connect(m_readyNotifier, &QSocketNotifier::activated, this, [this]() {
maybeDestroyReadyNotifier();
Q_EMIT started();
Q_EMIT ready();
});
m_xwaylandProcess->start();

@ -71,11 +71,9 @@ public:
QProcess *process() const;
Q_SIGNALS:
/**
* This signal is emitted when the Xwayland server has been started successfully and it is
* ready to accept and manage X11 clients.
* For restarts it may be emitted multiple times
* This signal is emitted when the Xwayland server is ready to accept connections.
*/
void started();
void ready();
/**
* This signal is emitted when the Xwayland server quits or crashes
*/

Loading…
Cancel
Save