thingmenu

A simple graphical menu launcher for X11.
git clone git://r-36.net/thingmenu
Log | Files | Refs | LICENSE

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:
thingmenu.c | 8++++++++
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)))