X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions.c;h=b7f5dc2bc710efcfffc776e5519f92dc5b4eca50;hb=41aeb42af13774c11e5a23e51bf56fa053678b5a;hp=75d4af059174a3a19d49f799be32384a5f308681;hpb=556eb7b7fb20b3b0db03b6d92259ad3bb16dccde;p=chaz%2Fopenbox diff --git a/openbox/actions.c b/openbox/actions.c index 75d4af05..b7f5dc2b 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -124,7 +124,7 @@ static void actions_definition_unref(ObActionsDefinition *def) } } -ObActionsAct* actions_build_act_from_string(const gchar *name) +static ObActionsAct* actions_build_act_from_string(const gchar *name) { GSList *it; ObActionsDefinition *def = NULL; @@ -339,9 +339,7 @@ void actions_client_move(ObActionsData *data, gboolean start) else if (config_focus_follow && data->context != OB_FRAME_CONTEXT_CLIENT) { - if (!data->button && data->client && !config_focus_under_mouse) - event_end_ignore_all_enters(ignore_start); - else { + if (data->button && config_focus_under_mouse) { struct _ObClient *c; /* usually this is sorta redundant, but with a press action @@ -355,6 +353,7 @@ void actions_client_move(ObActionsData *data, gboolean start) "mouse-event action"); event_enter_client(c); } - } + } else + event_end_ignore_all_enters(ignore_start); } }