]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
oops, copypaste
[chaz/openbox] / openbox / mouse.c
index 25068401362842542a6b9edbc49d295bab956c9a..ab628ff3a5652ed5311983c1a24543ec0c9a30be 100644 (file)
@@ -107,20 +107,23 @@ static gboolean fire_binding(ObMouseAction a, ObFrameContext context,
     if (it == NULL) return FALSE;
 
     for (it = b->actions[a]; it; it = it->next)
-        action_run_mouse(it->data, c, context, state, button, x, y);
+        action_run_mouse(it->data, c, state, button, x, y);
     return TRUE;
 }
 
-void mouse_event(ObClient *client, ObFrameContext context, XEvent *e)
+void mouse_event(ObClient *client, XEvent *e)
 {
     static Time ltime;
     static guint button = 0, state = 0, lbutton = 0;
-
     static Window lwindow = None;
     static int px, py;
+
+    ObFrameContext context;
     gboolean click = FALSE;
     gboolean dclick = FALSE;
 
+    context = frame_context(client, e->xany.window);
+
     switch (e->type) {
     case ButtonPress:
         px = e->xbutton.x_root;
This page took 0.02039 seconds and 4 git commands to generate.