diff options
author | monsta <[email protected]> | 2016-10-29 12:05:03 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-10-29 12:15:58 +0300 |
commit | 43c9069db1d2c7fd39ab82320b965aa12876f137 (patch) | |
tree | 772fd73f575d5718e8a68b08e6519c5b84408d55 /plugins/common/msd-input-helper.c | |
parent | b8e1b5ba90aee1ca73909230744270c261099ff4 (diff) | |
download | mate-settings-daemon-43c9069db1d2c7fd39ab82320b965aa12876f137.tar.bz2 mate-settings-daemon-43c9069db1d2c7fd39ab82320b965aa12876f137.tar.xz |
common: don't create Atom property when checking for its presence
adapted from:
https://github.com/linuxmint/cinnamon-settings-daemon/commit/6bf9af437b5b3d69be037042af1bcadf4051cc0c
Diffstat (limited to 'plugins/common/msd-input-helper.c')
-rw-r--r-- | plugins/common/msd-input-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |