Skip to content

Conversation

lbwtw
Copy link

@lbwtw lbwtw commented Jul 10, 2024

Issue: #384

void setSeat(WSeat *seat);
WSeat *seat() const;

libinput_device *libinput_device_handle();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libinputDeviceHandle


libinput_device *libinput_device_handle();

bool setSendEventsMode(uint32_t mode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can enum?


libinput_device *WInputDevice::libinput_device_handle()
{
return QWLibinputBackend::getDeviceHandle(handle());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (QWLibinputBackend::isLibinputDevice)


bool WInputDevice::setSendEventsMode(uint32_t mode)
{
return configSendEventsMode(libinput_device_handle(), mode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe libinput_device_handle() is nullptr

#include <QObject>
#include <qwglobal.h>

#include <libinput.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't include libinput.h in public header file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants