From ebc21270f10196c48a6e3a80f23855b3b917b93a Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 22 Jul 2004 22:50:48 +0000 Subject: [PATCH] dock: leftclick = raise, middleclick = lower. make this bindable later, but better than all buttons (incl scroll) raising it for now --- openbox/event.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index 62558490..16951f75 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1134,7 +1134,10 @@ static void event_handle_dock(ObDock *s, XEvent *e) { switch (e->type) { case ButtonPress: - stacking_raise(DOCK_AS_WINDOW(s)); + if (e->xbutton.button == 1) + stacking_raise(DOCK_AS_WINDOW(s)); + else if (e->xbutton.button == 2) + stacking_lower(DOCK_AS_WINDOW(s)); break; case EnterNotify: dock_hide(FALSE); -- 2.45.2