Ignore right-click, etc - thingmenu - A simple graphical menu launcher for X11. HTML git clone git://bitreich.org/thingmenu DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit a620d2b9712d9c6ba82c27dc6570f7760c7644cb DIR parent a0128acd10507703644c1a401932bfeb821bf992 HTML Author: Stephen Paul Weber <singpolyma@singpolyma.net> Date: Mon, 31 Oct 2011 17:54:03 -0500 Ignore right-click, etc Diffstat: M thingmenu.c | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) --- DIR 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)))