]> Dogcows Code - chaz/openbox/commitdiff
dock: leftclick = raise, middleclick = lower. make this bindable later, but better...
authorMikael Magnusson <mikachu@comhem.se>
Thu, 22 Jul 2004 22:50:48 +0000 (22:50 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Thu, 22 Jul 2004 22:50:48 +0000 (22:50 +0000)
openbox/event.c

index 625584906187834e7a65094dcc6e3c921d1e570f..16951f75792a5b131450a834c015c2da635e75c3 100644 (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);
This page took 0.024734 seconds and 4 git commands to generate.