[Pkg-wmaker-commits] [wmbiff] 27/38: looks like I'd broken the button click events recently

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:03:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_4_16
in repository wmbiff.

commit db84ba9d97ee5c24d302463338cfc5f0a4458919
Author: bluehal <bluehal>
Date:   Thu Jul 3 00:53:32 2003 +0000

    looks like I'd broken the button click events recently
---
 wmbiff/wmbiff.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index c46ae09..9bb54c2 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.55 2003/06/08 06:59:45 bluehal Exp $ */
+/* $Id: wmbiff.c,v 1.56 2003/07/03 00:53:32 bluehal Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -907,7 +907,7 @@ static void restart_wmbiff(int sig
 static void do_biff(int argc, const char **argv)
 {
 	unsigned int i;
-	int but_pressed_region = -1;
+	static int but_pressed_region = -1;	/* static so click can be determined */
 	int but_released_region = -1;
 	time_t curtime;
 	int Sleep_Interval;
@@ -1019,8 +1019,8 @@ static void do_biff(int argc, const char **argv)
 			case ButtonRelease:
 				but_released_region =
 					CheckMouseRegion(Event.xbutton.x, Event.xbutton.y);
-				if (but_pressed_region == (int) i
-					&& but_pressed_region >= 0) {
+				if (but_released_region == but_pressed_region
+					&& but_released_region >= 0) {
 					const char *click_action;
 
 					switch (Event.xbutton.button) {
@@ -1044,6 +1044,8 @@ static void do_biff(int argc, const char **argv)
 					}
 					if (click_action != NULL && click_action[0] != '\0'
 						&& strcmp(click_action, "msglst")) {
+						DM(&mbox[but_released_region], DEBUG_INFO,
+						   "running: %s", click_action);
 						(void) execCommand(click_action);
 					}
 				}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list