GLContext: Use host connection

This also removes the need for a sleeping event thread.
This commit is contained in:
Stenzek
2018-10-03 23:03:19 +10:00
parent 1d827a5223
commit 9c57a98723
18 changed files with 68 additions and 97 deletions

View File

@ -23,12 +23,12 @@ public:
int GetWidth() const { return m_width; }
int GetHeight() const { return m_height; }
void UpdateDimensions();
static std::unique_ptr<GLX11Window> Create(Display* display, Window parent_window,
XVisualInfo* vi);
private:
void XEventThread();
Display* m_display;
Window m_parent_window;
Colormap m_color_map;
@ -36,6 +36,4 @@ private:
int m_width;
int m_height;
std::thread m_event_thread;
};