dock: leftclick = raise, middleclick = lower. make this bindable later, but better than all buttons (incl scroll) raising it for now

This commit is contained in:
Mikael Magnusson 2004-07-22 22:50:48 +00:00
parent 3fb94dfc5f
commit ebc21270f1

View file

@ -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);