From 43c9069db1d2c7fd39ab82320b965aa12876f137 Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 29 Oct 2016 12:05:03 +0300 Subject: common: don't create Atom property when checking for its presence adapted from: https://github.com/linuxmint/cinnamon-settings-daemon/commit/6bf9af437b5b3d69be037042af1bcadf4051cc0c --- plugins/common/msd-input-helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/common/msd-input-helper.c b/plugins/common/msd-input-helper.c index d5dd0c9..35cc060 100644 --- a/plugins/common/msd-input-helper.c +++ b/plugins/common/msd-input-helper.c @@ -50,10 +50,10 @@ device_is_touchpad (XDeviceInfo *deviceinfo) unsigned long nitems, bytes_after; unsigned char *data; - if (deviceinfo->type != XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), XI_TOUCHPAD, False)) + if (deviceinfo->type != XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), XI_TOUCHPAD, True)) return NULL; - prop = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), "Synaptics Off", False); + prop = XInternAtom (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), "Synaptics Off", True); if (!prop) return NULL; -- cgit v1.2.1