X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fmouse.c;h=522eba8cbf9c8ccb27b241ae330c8ad4ab6c4083;hb=a76e91eb2a514dbd35ad9a9a81308acc7fc5bd89;hp=517ed6e695c362ac6b3ae0d2fdfa2705a1e0e887;hpb=e84fb1b052584b83947715d8ae4ec5d8afd201e7;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 517ed6e6..522eba8c 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -108,7 +108,7 @@ void mouse_grab_for_client(ObClient *client, gboolean grab) mode = GrabModeAsync; mask = ButtonPressMask | ButtonMotionMask | ButtonReleaseMask; } else if (CLIENT_CONTEXT(i, client)) { - win = client->window; + win = client->frame->plate; mode = GrabModeSync; /* this is handled in event */ mask = ButtonPressMask; /* can't catch more than this with Sync mode the release event is @@ -311,13 +311,13 @@ gboolean mouse_bind(const gchar *buttonstr, const gchar *contextstr, GSList *it; if (!translate_button(buttonstr, &state, &button)) { - g_message(_("Invalid button '%s' in pointer binding"), buttonstr); + g_message(_("Invalid button '%s' in mouse binding"), buttonstr); return FALSE; } context = frame_context_from_string(contextstr); if (!context) { - g_message(_("Invalid context '%s' in pointer binding"), contextstr); + g_message(_("Invalid context '%s' in mouse binding"), contextstr); return FALSE; }