X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=e8b6aec0b855956bb8d84ebecf7a8d16dff782c9;hb=854da68d0f5bed8c85c101fd6895244d60183ff5;hp=15d77ae68f3e9ce062592b2df792eaec86b6f60f;hpb=2c6c0757fa497f4c1e0648bcbb1927c0fa12862f;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 15d77ae6..e8b6aec0 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -346,6 +346,13 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact, grab_all_clients(FALSE); + /* when there are no modifiers in the binding, then the action cannot + be interactive */ + if (!state && action->data.any.interactive) { + action->data.any.interactive = FALSE; + action->data.inter.final = TRUE; + } + /* add the binding */ b = g_new0(ObMouseBinding, 1); b->state = state;