From: Mikael Magnusson Date: Mon, 7 Jul 2008 20:34:55 +0000 (+0200) Subject: This might be a little bit better. X-Git-Tag: mikabox-3.5-7~35^2~3 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a7abedd9f5a098cff1d97eebbc571abedb853989;p=mikachu%2Fopenbox.git This might be a little bit better. At least it consistently doesn't run the openbox action. --- diff --git a/openbox/event.c b/openbox/event.c index e0b0fd77..c867617d 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -723,10 +723,10 @@ static void event_process(const XEvent *ec, gpointer data) pressed = e->xbutton.button; pressed_win = e->xbutton.subwindow; } - /* If we have grabbed the mouse actively, I think this is how - to check it? */ - else if (button) - event_handle_user_input(NULL, e); + /* We ignored the release event so make sure we don't think + the button is still pressed */ + else if (e->type == ButtonRelease) + button = 0; } } else if (e->type == KeyPress || e->type == KeyRelease ||