[gnome-settings-daemon] wacom: Remove unused XDevice variable



commit 37d1dc6825bc32a5ac88cc9396c0a754667c2999
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 23 15:54:29 2012 +0100

    wacom: Remove unused XDevice variable

 plugins/wacom/gsd-wacom-manager.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index e1144b9..3e5e6f6 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -696,7 +696,6 @@ struct {
 
 static void
 send_modifiers (Display *display,
-		XDevice *dev,
 		guint mask,
 		gboolean is_press)
 {
@@ -729,7 +728,6 @@ filter_button_events (XEvent          *xevent,
 	int                  button;
 	GsdWacomTabletButton *wbutton;
 	GtkDirectionType      dir;
-	XDevice               dev;
 	char                 *str;
 	guint                 keyval;
 	guint                *keycodes;
@@ -797,15 +795,13 @@ filter_button_events (XEvent          *xevent,
 	g_debug ("Emitting '%s' on device %d", str, deviceid);
 	g_free (str);
 
-	dev.device_id = deviceid; /* that's cheating, but whot did it first */
-
 	/* And send out the keys! */
 	if (xiev->evtype == XI_ButtonPress)
-		send_modifiers (xev->display, &dev, mods, TRUE);
+		send_modifiers (xev->display, mods, TRUE);
 	XTestFakeKeyEvent (xev->display, keycodes[0],
 			   xiev->evtype == XI_ButtonPress ? True : False, 0);
 	if (xiev->evtype == XI_ButtonRelease)
-		send_modifiers (xev->display, &dev, mods, FALSE);
+		send_modifiers (xev->display, mods, FALSE);
 
 	g_free (keycodes);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]