]> Dogcows Code - chaz/openbox/commitdiff
remove the urgent actions
authorDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:41:14 +0000 (03:41 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 1 Sep 2003 03:41:14 +0000 (03:41 +0000)
openbox/config.c
openbox/config.h

index 2095060323c1fd153d6981f6a229432d6c9a1273..21f03d3e27dea11e6cc692469b2c9781e6534156 100644 (file)
@@ -40,8 +40,6 @@ GSList *config_menu_files;
 gint config_resist_win;
 gint config_resist_edge;
 
-GSList *config_urgent_actions;
-
 /*
 
 <keybind key="C-x">
@@ -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()
index ea9b5f61d8b26f0b96f039e8cce541de9337e71e..02ee2457a6008e23b64728b69f952fd4dadbf6eb 100644 (file)
@@ -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();
 
This page took 0.024783 seconds and 4 git commands to generate.