X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Ffocus.c;fp=openbox%2Factions%2Factivate.c;h=9be6741cd38bf9810ab5472267f0633165e6030d;hb=6c5f6ed1f5d501c79977a55c0f2430ebdd32ef6c;hp=c3f3f98e2b62b75a0e4b715b2b4606bb917ffcc4;hpb=d642be361fde438e2b29b7374b4d6465f47ad9e9;p=chaz%2Fopenbox diff --git a/openbox/actions/activate.c b/openbox/actions/focus.c similarity index 77% rename from openbox/actions/activate.c rename to openbox/actions/focus.c index c3f3f98e..9be6741c 100644 --- a/openbox/actions/activate.c +++ b/openbox/actions/focus.c @@ -5,17 +5,15 @@ typedef struct { gboolean here; - gboolean raise; - gboolean unshade; } Options; static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); -void action_activate_startup() +void action_focus_startup() { - actions_register("Activate", + actions_register("Focus", setup_func, free_func, run_func, @@ -28,15 +26,9 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node) Options *o; o = g_new0(Options, 1); - o->raise = TRUE; - o->unshade = TRUE; if ((n = parse_find_node("here", node))) o->here = parse_bool(doc, n); - if ((n = parse_find_node("raise", node))) - o->raise = parse_bool(doc, n); - if ((n = parse_find_node("unshade", node))) - o->unshade = parse_bool(doc, n); return o; } @@ -57,7 +49,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) data->context != OB_FRAME_CONTEXT_CLIENT || data->context != OB_FRAME_CONTEXT_FRAME) { - client_activate(data->client, o->here, o->raise, o->unshade, TRUE); + client_activate(data->client, o->here, FALSE, FALSE, TRUE); } } else { /* focus action on something other than a client, make keybindings