We now initialize/destroy the display in Xlib::init/shutdown that is called in UnixApplication::init/shutdown and therefore is valid through the whole lifetime. So no need for classes to keep references.
27 lines
332 B
C++
27 lines
332 B
C++
|
|
#include "UnixApplication.h"
|
|
#include "Xlib.h"
|
|
|
|
namespace sp {
|
|
|
|
void UnixApplication::init()
|
|
{
|
|
Xlib::init();
|
|
}
|
|
|
|
void UnixApplication::shutdown()
|
|
{
|
|
Xlib::shutdown();
|
|
}
|
|
|
|
PlatformInput& UnixApplication::getInput()
|
|
{
|
|
return m_input;
|
|
}
|
|
|
|
MessageQueue& UnixApplication::getMessageQueue()
|
|
{
|
|
return m_messageQueue;
|
|
}
|
|
|
|
} // namespace sp
|