refactor: EIEventQueueBuffer remove unused screen from constructor

This commit is contained in:
sithlord48 2025-09-04 22:29:08 -04:00 committed by Nick Bolton
parent 30ce0bdf45
commit bc63961e7e
3 changed files with 3 additions and 5 deletions

View file

@ -25,9 +25,7 @@ class EventQueueTimer
namespace deskflow {
EiEventQueueBuffer::EiEventQueueBuffer(const EiScreen *screen, ei *ei, IEventQueue *events)
: m_ei{ei_ref(ei)},
m_events{events}
EiEventQueueBuffer::EiEventQueueBuffer(ei *ei, IEventQueue *events) : m_ei{ei_ref(ei)}, m_events{events}
{
// We need a pipe to signal ourselves when addEvent() is called
int pipefd[2];

View file

@ -23,7 +23,7 @@ namespace deskflow {
class EiEventQueueBuffer : public IEventQueueBuffer
{
public:
EiEventQueueBuffer(const EiScreen *screen, ei *ei, IEventQueue *events);
EiEventQueueBuffer(ei *ei, IEventQueue *events);
~EiEventQueueBuffer() override;
// IEventQueueBuffer overrides

View file

@ -123,7 +123,7 @@ void EiScreen::initEi()
// install the platform event queue
m_events->adoptBuffer(nullptr);
m_events->adoptBuffer(new EiEventQueueBuffer(this, m_ei, m_events));
m_events->adoptBuffer(new EiEventQueueBuffer(m_ei, m_events));
}
void EiScreen::cleanupEi()