refactor: EIEventQueueBuffer remove unused screen from constructor
This commit is contained in:
parent
30ce0bdf45
commit
bc63961e7e
3 changed files with 3 additions and 5 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue