X-Git-Url: https://diplodocus.org/git/xorg-xinput/blobdiff_plain/e3b705dc15d07bbb478ced6b54a5e0553d978113..6f444b5d063452e7a8705c756269960e509241d8:/src/xinput.c?ds=sidebyside diff --git a/src/xinput.c b/src/xinput.c index 32a7833..1207f9d 100644 --- a/src/xinput.c +++ b/src/xinput.c @@ -53,6 +53,10 @@ static entry drivers[] = " ", set_integer_feedback }, + {"get-button-map", + "", + get_button_map + }, {"set-button-map", " [ [...]]", set_button_map @@ -81,6 +85,7 @@ static entry drivers[] = "", version }, +#if HAVE_XI2 { "create-master", " [sendCore (dflt:1)] [enable (dflt:1)]", create_master @@ -101,6 +106,31 @@ static entry drivers[] = " ", set_clientpointer }, +#endif + { "list-props", + " [ ...]", + list_props + }, + { "set-int-prop", + " [ ...]", + set_int_prop + }, + { "set-float-prop", + " [ ...]", + set_float_prop + }, + { "set-atom-prop", + " [ ...]", + set_atom_prop + }, + { "watch-props", + "", + watch_props + }, + { "delete-prop", + " ", + delete_prop + }, {0, 0, 0 } }; @@ -111,7 +141,11 @@ is_xinput_present(Display *display) XExtensionVersion *version; Bool present; +#if HAVE_XI2 + version = XQueryInputVersion(display, XI_2_Major, XI_2_Minor); +#else version = XGetExtensionVersion(display, INAME); +#endif if (version && (version != (XExtensionVersion*) NoSuchExtension)) { present = version->present; @@ -210,7 +244,7 @@ main(int argc, char * argv[]) if (strcmp(driver->func_name, func) == 0) { int r = (*driver->func)(display, argc-2, argv+2, driver->func_name, driver->arg_desc); - XFlush(display); + XSync(display, False); return r; } driver++;