diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xinput.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/xinput.c b/src/xinput.c index a20f856..64b4887 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -184,6 +184,16 @@ xinput_version(Display *display) XFree(version); } +#if HAVE_XI2 + /* Announce our supported version so the server treats us correctly. */ + if (vers >= XI_2_Major) + { + int maj = 2, + min = 0; + XIQueryVersion(display, &maj, &min); + } +#endif + return vers; } |