From: Mikael Magnusson Date: Thu, 22 Jul 2004 22:50:48 +0000 (+0000) Subject: dock: leftclick = raise, middleclick = lower. make this bindable later, but better... X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ebc21270f10196c48a6e3a80f23855b3b917b93a;p=chaz%2Fopenbox dock: leftclick = raise, middleclick = lower. make this bindable later, but better than all buttons (incl scroll) raising it for now --- 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);