[Pkg-wmaker-commits] [wmbutton] 09/25: wmbutton: Middle button enabled by default

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Jul 16 23:38:09 UTC 2017


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

dtorrance-guest pushed a commit to branch upstream
in repository wmbutton.

commit 25f1b8c5a0da0039f30cba5bf9041b361418b36c
Author: Rodolfo García Peñas (kix) <kix at kix.es>
Date:   Tue Aug 21 20:38:48 2012 +0200

    wmbutton: Middle button enabled by default
    
    The mouse middle button should be enabled by default (see the help
    and the manpage). This patch solves this bug.
    
    The MIDMOUSE definition is removed because the value of MIDMOUSE
    changes the middle button behaviour. Now, the middle button always works,
    except if the user uses the -m argument.
    
    Now the manpage and the help show the same info.
---
 wmb_libs.c | 4 ----
 wmbutton.c | 4 ++--
 wmbutton.h | 1 -
 3 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/wmb_libs.c b/wmb_libs.c
index 0d8daad..8f54d5e 100644
--- a/wmb_libs.c
+++ b/wmb_libs.c
@@ -116,11 +116,7 @@ void show_usage() {
   fprintf(stderr,"-F <font>      Custom tooltip font (e.g. -b\\&h-lucidatypewriter-medium-*-*-*-12-*)\n");
   fprintf(stderr,"-v             Verbose Mode.\n");
   fprintf(stderr,"-h             Help. This message.\n");
-#if MIDMOUSE
   fprintf(stderr,"-m             Disable Middle Mouse functionality.\n");
-#else
-  fprintf(stderr,"-m             Enable Middle Mouse functionality.\n");
-#endif
   fprintf(stderr,"-s             Swap tooltip colors.\n");
   fprintf(stderr,"-n             Turn off tooltips.\n");
   fprintf(stderr,"\n");
diff --git a/wmbutton.c b/wmbutton.c
index cd0617f..14831fd 100644
--- a/wmbutton.c
+++ b/wmbutton.c
@@ -296,7 +296,7 @@ int main(int argc, char **argv)
 					break;
 
 				case Button2:
-					if (Config.mmouse) {
+					if (!Config.mmouse) {
 						N = whichButton(report.xbutton.x, report.xbutton.y);
 						if ((N >= 0) && (N <= NUMB_OF_APPS)) {
 							button_pressed = N + MMASK;
@@ -339,7 +339,7 @@ int main(int argc, char **argv)
 					break;
 
 				case Button2:
-					if (Config.mmouse) {
+					if (!Config.mmouse) {
 						N = whichButton(report.xbutton.x, report.xbutton.y);
 						if ((N >= 0) && (N <= NUMB_OF_APPS) && (N == button_pressed))
 							RunAppN(N + MMASK);
diff --git a/wmbutton.h b/wmbutton.h
index ebf62ff..9facaae 100644
--- a/wmbutton.h
+++ b/wmbutton.h
@@ -36,7 +36,6 @@
 
 /******   Define Other Options  ****************************************/
 #define VERB          0      /* Enable=1, Disable=0: Debugging (verbose) Mode*/
-#define MIDMOUSE      1      /* Define Middle Mouse functionality */
 #define LMASK         0      /* left button mask: run app # mask + button #*/
 #define MMASK         10     /* middle button mask: run app # mask + button #*/
 #define RMASK         20     /* right button mask: run app # mask + button #*/

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



More information about the Pkg-wmaker-commits mailing list