X11: handling of keyboard mouse emulation + mouse panning

This commit is contained in:
Thomas Bernard
2019-01-20 22:49:06 +01:00
parent 955ebb5932
commit e2637097fb
2 changed files with 24 additions and 3 deletions

View File

@@ -148,7 +148,8 @@ void GFX2_Set_mode(int *width, int *height, int fullscreen)
}
XSelectInput(X11_display, X11_window,
PointerMotionMask | ButtonPressMask | ButtonReleaseMask | KeyPressMask | ExposureMask | StructureNotifyMask);
PointerMotionMask | ButtonPressMask | ButtonReleaseMask
| KeyPressMask | KeyReleaseMask | ExposureMask | StructureNotifyMask);
wmDelete = XInternAtom(X11_display, "WM_DELETE_WINDOW", True);
XSetWMProtocols(X11_display, X11_window, &wmDelete, 1);