Changed: Fixed X11 keyboard input. Events are now caught and acted upon.

~g2k
This commit is contained in:
2005-07-01 19:44:57 -04:00
parent b1c585a9b0
commit 4e14ef1072
2 changed files with 335 additions and 271 deletions

View File

@@ -268,7 +268,7 @@ bool OpenArena::Window::Open()
}
else
{
attributes.event_mask = ExposureMask | KeyPressMask | ButtonPressMask | StructureNotifyMask;
attributes.event_mask = ExposureMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | StructureNotifyMask;
window = XCreateWindow(display, RootWindow(display, vi->screen), 0, 0, width, height, 0, vi->depth, InputOutput, vi->visual, CWBorderPixel | CWColormap | CWEventMask, &attributes);
wmDelete = XInternAtom(display, "WM_DELETE_WINDOW", true);
XSetWMProtocols(display, window, &wmDelete, 1);