source/Platform/Unix/X11Display.cpp: in create() set the attr.event_mask to include some interesting events.
This commit is contained in:
parent
7dedabba57
commit
5e27f820de
1 changed files with 4 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue