From: Dana Jansens Date: Mon, 1 Sep 2003 03:41:14 +0000 (+0000) Subject: remove the urgent actions X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=169e64da2c5246fb9aaec417f12c0a9c89b295ee;p=chaz%2Fopenbox remove the urgent actions --- diff --git a/openbox/config.c b/openbox/config.c index 20950603..21f03d3e 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -40,8 +40,6 @@ GSList *config_menu_files; gint config_resist_win; gint config_resist_edge; -GSList *config_urgent_actions; - /* @@ -354,33 +352,6 @@ static void parse_resistance(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_resist_edge = parse_int(doc, n); } -static void parse_urgent(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, - void *d) -{ - ObAction *action; - xmlNodePtr nact; - - nact = parse_find_node("action", node->xmlChildrenNode); - while (nact) { - if ((action = action_parse(i, doc, nact))) { - /* validate that its okay for an urgent binding */ - if (action->func == action_moveresize && - action->data.moveresize.corner != - prop_atoms.net_wm_moveresize_move_keyboard && - action->data.moveresize.corner != - prop_atoms.net_wm_moveresize_size_keyboard) { - action_free(action); - action = NULL; - } - - if (action) - config_urgent_actions = g_slist_append(config_urgent_actions, - action); - } - nact = parse_find_node("action", nact->next); - } -} - void config_startup(ObParseInst *i) { config_focus_new = TRUE; @@ -434,8 +405,6 @@ void config_startup(ObParseInst *i) config_menu_files = NULL; parse_register(i, "menu", parse_menu, NULL); - - parse_register(i, "urgent", parse_urgent, NULL); } void config_shutdown() diff --git a/openbox/config.h b/openbox/config.h index ea9b5f61..02ee2457 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -71,9 +71,6 @@ extern gint config_resist_edge; /*! User-specified menu files */ extern GSList *config_menu_files; -/*! Actions to execute when a client sets its urgent flag */ -extern GSList *config_urgent_actions; - void config_startup(struct _ObParseInst *i); void config_shutdown();