Do not create a WaylandSeat if we use libinput

This commit is contained in:
Martin Gräßlin 2014-08-15 14:16:15 +02:00
parent 15a1a5b70f
commit 96d6a55ea8

View file

@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// KWin // KWin
#include "cursor.h" #include "cursor.h"
#include "input.h" #include "input.h"
#include "main.h"
#include <KWayland/Client/buffer.h> #include <KWayland/Client/buffer.h>
#include <KWayland/Client/compositor.h> #include <KWayland/Client/compositor.h>
#include <KWayland/Client/connection_thread.h> #include <KWayland/Client/connection_thread.h>
@ -470,6 +471,9 @@ WaylandBackend::WaylandBackend(QObject *parent)
); );
connect(m_registry, &Registry::seatAnnounced, this, connect(m_registry, &Registry::seatAnnounced, this,
[this](quint32 name) { [this](quint32 name) {
if (Application::usesLibinput()) {
return;
}
m_seat.reset(new WaylandSeat(m_registry->bindSeat(name, 2), this)); m_seat.reset(new WaylandSeat(m_registry->bindSeat(name, 2), this));
} }
); );