From: Mikael Magnusson Date: Mon, 23 Jul 2007 23:45:41 +0000 (+0200) Subject: Allow selecting the random placement strategy. The hunk for place.c that actually... X-Git-Tag: mikabox-3.5-7~36^2~6 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=46d15caf848358f9070aa07f106e182abca2ff7b;p=mikachu%2Fopenbox.git Allow selecting the random placement strategy. The hunk for place.c that actually does this seems to have been lost somewhere on the way. --- diff --git a/openbox/config.c b/openbox/config.c index 27316bbb..efcf4d95 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -574,6 +574,8 @@ static void parse_placement(xmlNodePtr node, gpointer d) if ((n = obt_xml_find_node(node, "policy"))) if (obt_xml_node_contains(n, "UnderMouse")) config_place_policy = OB_PLACE_POLICY_MOUSE; + if (obt_xml_node_contains(n, "Random")) + config_place_policy = OB_PLACE_POLICY_RANDOM; if ((n = obt_xml_find_node(node, "center"))) config_place_center = obt_xml_node_bool(n); if ((n = obt_xml_find_node(node, "monitor"))) { diff --git a/openbox/place.h b/openbox/place.h index 6a9add40..deb7bbfa 100644 --- a/openbox/place.h +++ b/openbox/place.h @@ -28,6 +28,7 @@ struct _ObAppSettings; typedef enum { OB_PLACE_POLICY_SMART, + OB_PLACE_POLICY_RANDOM, OB_PLACE_POLICY_MOUSE } ObPlacePolicy;