wayland: fix check for creating input method connection

Previously code was if socket fd is greater then 0, then we start
process, but new code in 05ebe676d2 reversed logic. So this
made it not start input method at all.
This commit is contained in:
Bhushan Shah 2021-01-20 20:52:53 +05:30
parent 69adaf64df
commit 57086c341c

View file

@ -254,7 +254,7 @@ void ApplicationWayland::startInputMethod(const QString &executable)
const QString program = arguments.takeFirst();
int socket = dup(waylandServer()->createInputMethodConnection());
if (socket >= 0) {
if (socket < 0) {
qWarning("Failed to create the input method connection");
return;
}