mousetweaks r133 - in branches/gnome-2-22: . src
- From: gerdk svn gnome org
- To: svn-commits-list gnome org
- Subject: mousetweaks r133 - in branches/gnome-2-22: . src
- Date: Sun, 6 Apr 2008 18:39:41 +0100 (BST)
Author: gerdk
Date: Sun Apr 6 18:39:41 2008
New Revision: 133
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=133&view=rev
Log:
2008-04-06 Gerd Kohlberger <gerdk svn gnome org>
* src/mt-main.c: Don't send right-clicks too fast. This helps
to avoid running into active pointer grabs. (eg. gnome-panel)
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/mt-main.c
Modified: branches/gnome-2-22/src/mt-main.c
==============================================================================
--- branches/gnome-2-22/src/mt-main.c (original)
+++ branches/gnome-2-22/src/mt-main.c Sun Apr 6 18:39:41 2008
@@ -215,13 +215,24 @@
}
}
+static gboolean
+right_click_timeout (gpointer data)
+{
+ MTClosure *mt = (MTClosure *) data;
+
+ SPI_generateMouseEvent (mt->pointer_x, mt->pointer_y, "b3c");
+
+ return FALSE;
+}
+
static void
delay_time_elapsed (MtTimer *timer, gpointer data)
{
MTClosure *mt = (MTClosure *) data;
SPI_generateMouseEvent (0, 0, "b1r");
- SPI_generateMouseEvent (mt->pointer_x, mt->pointer_y, "b3c");
+ SPI_generateMouseEvent (mt->pointer_x, mt->pointer_y, "abs");
+ g_timeout_add (100, right_click_timeout, data);
}
/* at-spi callbacks */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]