Skip to content

Commit

Permalink
Undo changes to evdevhandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Feb 3, 2024
1 parent 6a2c301 commit 9521eb6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions applications/display-server/evdevhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ EvDevHandler* EvDevHandler::init(){
}

EvDevHandler::EvDevHandler()
: QThread(),
enabled{true}
: QThread()
{
setObjectName("EvDevHandler");
reloadDevices();
Expand All @@ -50,9 +49,7 @@ void EvDevHandler::reloadDevices(){
if(!hasDevice(device) && device.fd > 0){
auto input = new EvDevDevice(this, device);
connect(input, &EvDevDevice::inputEvents, this, [this, input](auto events){
if(enabled){
dbusInterface->inputEvents(input->number(), events);
}
dbusInterface->inputEvents(input->number(), events);
}, Qt::QueuedConnection);
O_DEBUG(input->name() << "added");
devices.append(input);
Expand Down

0 comments on commit 9521eb6

Please sign in to comment.