]> Dogcows Code - chaz/openbox/blobdiff - openbox/mouse.c
for startup notification, use the left ptr+watch if it is available, and fall back...
[chaz/openbox] / openbox / mouse.c
index 8b0cfccbd0a0b887e2de95ff2a7d4e449958f92c..96cb0660eaaf70691ef28871591db5be5a82bcd2 100644 (file)
@@ -67,6 +67,8 @@ ObFrameContext mouse_button_frame_context(ObFrameContext context,
     case OB_FRAME_CONTEXT_TITLEBAR:
     case OB_FRAME_CONTEXT_FRAME:
     case OB_FRAME_CONTEXT_MOVE_RESIZE:
+    case OB_FRAME_CONTEXT_LEFT:
+    case OB_FRAME_CONTEXT_RIGHT:
         break;
     case OB_FRAME_CONTEXT_BOTTOM:
     case OB_FRAME_CONTEXT_BLCORNER:
@@ -205,6 +207,11 @@ void mouse_event(ObClient *client, XEvent *e)
                      e->xbutton.x_root, e->xbutton.y_root,
                      e->xbutton.time);
 
+        /* if the bindings grab the pointer, there won't be a ButtonRelease
+           event for us */
+        if (grab_on_pointer())
+            button = 0;
+
         if (CLIENT_CONTEXT(context, client)) {
             /* Replay the event, so it goes to the client*/
             XAllowEvents(ob_display, ReplayPointer, event_curtime);
This page took 0.024528 seconds and 4 git commands to generate.