commit a620d2b9712d9c6ba82c27dc6570f7760c7644cb
parent a0128acd10507703644c1a401932bfeb821bf992
Author: Stephen Paul Weber <singpolyma@singpolyma.net>
Date: Mon, 31 Oct 2011 17:54:03 -0500
Ignore right-click, etc
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/thingmenu.c b/thingmenu.c
@@ -145,6 +145,10 @@ buttonpress(XEvent *e)
XButtonPressedEvent *ev = &e->xbutton;
Entry *en;
+ /* We don't care about other mouse buttons */
+ if(ev->button != Button1)
+ return;
+
ispressing = True;
if((en = findentry(ev->x, ev->y)))
@@ -157,6 +161,10 @@ buttonrelease(XEvent *e)
XButtonPressedEvent *ev = &e->xbutton;
Entry *en;
+ /* We don't care about other mouse buttons */
+ if(ev->button != Button1)
+ return;
+
ispressing = False;
if((en = findentry(ev->x, ev->y)))