1
0
Fork 0

source/Platform/Unix/X11Display.cpp: in create() set the attr.event_mask to include some interesting events.

This commit is contained in:
Henrik Hautakoski 2019-12-25 22:39:10 +01:00
parent 9131aa2d2d
commit dd17868b89

View file

@ -32,7 +32,10 @@ bool X11Display::create(DisplayDescription description)
attr.background_pixel = WhitePixel(m_disp, m_screen);
//attr.override_redirect = True;
attr.colormap = ::XCreateColormap(m_disp, RootWindow(m_disp, m_screen), DefaultVisual(m_disp, m_screen), AllocNone);
attr.event_mask = ExposureMask;
// We want Keyboard,Mouse,Resize,Exposure (repaint) events.
attr.event_mask = KeyPressMask | KeyReleaseMask
| ButtonPressMask | ButtonReleaseMask | PointerMotionMask
| ResizeRedirectMask | ExposureMask;
m_win = XCreateWindow(m_disp,
RootWindow(m_disp, m_screen),