X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fevent.c;h=16951f75792a5b131450a834c015c2da635e75c3;hb=10805a47644f9b7eb01528287c3281232e9187d0;hp=625584906187834e7a65094dcc6e3c921d1e570f;hpb=b2b8ad92bfbc60392737fe9945e719b238d34933;p=chaz%2Fopenbox 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);