]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
xinerama support like crazy for struts and everything else too. this probably crashes...
[chaz/openbox] / openbox / mouse.c
index 850fb337cb99e964ae9144bf3525aad97652cc6f..9e7ac6489843689eff3bad0b74e2ee5e290afce2 100644 (file)
@@ -119,7 +119,7 @@ void mouse_grab_for_client(ObClient *client, gboolean grab)
                 mode = GrabModeAsync;
                 mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask;
             } else if (CLIENT_CONTEXT(i, client)) {
-                win = client->frame->plate;
+                win = client->window;
                 mode = GrabModeSync; /* this is handled in event */
                 mask = ButtonPressMask; /* can't catch more than this with Sync
                                            mode the release event is
@@ -210,6 +210,9 @@ void mouse_event(ObClient *client, XEvent *e)
         button = e->xbutton.button;
         state = e->xbutton.state;
 
+        if (CLIENT_CONTEXT(context, client))
+            XAllowEvents(ob_display, ReplayPointer, event_curtime);
+
         fire_binding(OB_MOUSE_ACTION_PRESS, context,
                      client, e->xbutton.state,
                      e->xbutton.button,
This page took 0.020251 seconds and 4 git commands to generate.