X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=f74063edbbffc394bf8db31fb42dc889a4236b31;hb=2aa0a6b01ba718217e2b10107abbcd4236ba5a8f;hp=a96b02b9ca586e73af98009fedda7bd5126d965d;hpb=198aab2b713b9a916079b0fd6cf88555d7f3c9b8;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index a96b02b9..f74063ed 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -71,6 +71,9 @@ ObFrameContext mouse_button_frame_context(ObFrameContext context, case OB_FRAME_CONTEXT_LEFT: case OB_FRAME_CONTEXT_RIGHT: break; + case OB_FRAME_CONTEXT_ROOT: + x = OB_FRAME_CONTEXT_DESKTOP; + break; case OB_FRAME_CONTEXT_BOTTOM: case OB_FRAME_CONTEXT_BLCORNER: case OB_FRAME_CONTEXT_BRCORNER: @@ -116,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