* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
int major, minor;
major = 2;
+#ifdef XINPUT_2_2
+ minor = 2;
+#else
minor = 0;
+#endif /* XINPUT_2_2 */
if (!_gdk_disable_multidevice &&
XIQueryVersion (xdisplay, &major, &minor) != BadRequest)
device_manager_xi2 = g_object_new (GDK_TYPE_X11_DEVICE_MANAGER_XI2,
"display", display,
"opcode", opcode,
+ "major", major,
+ "minor", minor,
NULL);
return GDK_DEVICE_MANAGER (device_manager_xi2);
*
* Returns: (transfer none): (allow-none): The #GdkDevice wrapping the device ID,
* or %NULL if the given ID doesn't currently represent a device.
+ *
+ * Since: 3.2
**/
GdkDevice *
gdk_x11_device_manager_lookup (GdkDeviceManager *device_manager,
* </note>
*
* Returns: the XInput2 device ID.
+ *
+ * Since: 3.2
**/
gint
gdk_x11_device_get_id (GdkDevice *device)