mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-10 06:41:40 +02:00
- made unit testing easier by (mostly) removing the event queue singleton.
- fixed code style in many places (mostly indentation).
This commit is contained in:
parent
13b2649fa0
commit
608074c041
143 changed files with 2220 additions and 2163 deletions
|
@ -28,7 +28,8 @@
|
|||
// CScreen
|
||||
//
|
||||
|
||||
CScreen::CScreen(IPlatformScreen* platformScreen) :
|
||||
CScreen::CScreen(IPlatformScreen* platformScreen, IEventQueue* events) :
|
||||
m_events(events),
|
||||
m_screen(platformScreen),
|
||||
m_isPrimary(platformScreen->isPrimary()),
|
||||
m_enabled(false),
|
||||
|
@ -462,7 +463,7 @@ CScreen::enablePrimary()
|
|||
m_screen->openScreensaver(true);
|
||||
|
||||
// claim screen changed size
|
||||
EVENTQUEUE->addEvent(CEvent(getShapeChangedEvent(), getEventTarget()));
|
||||
m_events->addEvent(CEvent(m_events->forIScreen().shapeChanged(), getEventTarget()));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue