From 95887df4af3382303e4ab1b1b78c7b68bcd48a74 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 7 Jul 2008 22:34:55 +0200 Subject: [PATCH] This might be a little bit better. At least it consistently doesn't run the openbox action. --- openbox/event.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openbox/event.c b/openbox/event.c index a8e5c3f2..85403739 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -740,10 +740,10 @@ static void event_process(const XEvent *ec, gpointer data) { event_handle_user_input(client, e); } - /* 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 || -- 2.34.1