[gnome-settings-daemon] mouse: Always ignore the XTest virtual pointer
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: Always ignore the XTest virtual pointer
- Date: Fri, 25 May 2012 17:49:40 +0000 (UTC)
commit 1b5631f0c1802a58a5fa2e624ae5142857735539
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]