Commit d3088870 authored by Jan Blackquill's avatar Jan Blackquill 🌈
Browse files

Wayland: don't block on a response from plasmashell before toggling

When the system is under load, Plasma may take a while to respond, and
Yakuake is left feeling unresponsive as it's waiting on a response from
Plasma before responding to user input.

Since the available desktop region doesn't change much, we can assume that
the old value is okiedokie and go ahead and show the window according to it.

When the latest value comes in, we update the position of the window.
For the case when it's the same, nothing happens.
For the case when it's different, it moves to the correct location.
parent c92e3587
Pipeline #113754 passed with stage
in 49 seconds
......@@ -1161,9 +1161,11 @@ void MainWindow::toggleWindowState()
QObject::connect(watcher, &QDBusPendingCallWatcher::finished, this, [=]() {
QDBusPendingReply<QRect> reply = *watcher;
m_availableScreenRect = reply.isValid() ? reply.value() : QRect();
setWindowGeometry(Settings::width(), Settings::height(), Settings::position());
} else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment