[gnome-settings-daemon/gnome-3-4] mouse: Always ignore the XTest virtual pointer
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-4] mouse: Always ignore the XTest virtual pointer
- Date: Fri, 25 May 2012 17:49:14 +0000 (UTC)
commit 4fb45d63ada68ecef621e7cd993c00b0db81517e
Author: Bastien Nocera <hadess hadess net>
Date: Fri May 25 18:47:26 2012 +0100
mouse: Always ignore the XTest virtual pointer
plugins/mouse/gsd-mouse-manager.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index e5128ad..71e6b21 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -173,6 +173,7 @@ device_is_ignored (GsdMouseManager *manager,
GdkDevice *device)
{
GdkInputSource source;
+ const char *name;
if (device_is_blacklisted (manager, device))
return TRUE;
@@ -183,6 +184,10 @@ device_is_ignored (GsdMouseManager *manager,
source != GDK_SOURCE_CURSOR)
return TRUE;
+ name = gdk_device_get_name (device);
+ if (name != NULL && g_str_equal ("Virtual core XTEST pointer", name))
+ return TRUE;
+
return FALSE;
}
@@ -333,11 +338,7 @@ set_left_handed (GsdMouseManager *manager,
gsize buttons_capacity = 16;
gboolean left_handed;
gint n_buttons;
- const char *name;
- name = gdk_device_get_name (device);
- if (name != NULL && g_str_equal ("Virtual core XTEST pointer", name))
- return;
if (!xinput_device_has_buttons (device))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]