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.
20 lines
358 B
C++
20 lines
358 B
C++
|
|
#ifndef PLATFORM_UNIX_X11_EVENT_QUEUE_H
|
|
#define PLATFORM_UNIX_X11_EVENT_QUEUE_H
|
|
|
|
#include <Spectre/System/Event.h>
|
|
#include <Platform/PlatformEventQueue.h>
|
|
#include <X11/Xlib.h>
|
|
|
|
namespace sp {
|
|
|
|
class X11EventQueue : public PlatformEventQueue
|
|
{
|
|
public :
|
|
|
|
virtual bool poll(Event& event);
|
|
};
|
|
|
|
} // namespace sp
|
|
|
|
#endif /* PLATFORM_UNIX_X11_EVENT_QUEUE_H */
|