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:
parent
3fb94dfc5f
commit
ebc21270f1
1 changed files with 4 additions and 1 deletions
|
@ -1134,7 +1134,10 @@ static void event_handle_dock(ObDock *s, XEvent *e)
|
||||||
{
|
{
|
||||||
switch (e->type) {
|
switch (e->type) {
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
|
if (e->xbutton.button == 1)
|
||||||
stacking_raise(DOCK_AS_WINDOW(s));
|
stacking_raise(DOCK_AS_WINDOW(s));
|
||||||
|
else if (e->xbutton.button == 2)
|
||||||
|
stacking_lower(DOCK_AS_WINDOW(s));
|
||||||
break;
|
break;
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
dock_hide(FALSE);
|
dock_hide(FALSE);
|
||||||
|
|
Loading…
Reference in a new issue