X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fconfig.c;h=6a45005d81f31d6b6fb11099a62d2fcf23e50ea3;hb=ec21f8c9ec160466ba0a1aa662da8af5cb6a3c9b;hp=18db15f837e2580b43d024b144f301a9591281c1;hpb=2c507a72070c2eba4a7bfa743a2b6d330539711f;p=chaz%2Fopenbox diff --git a/openbox/config.c b/openbox/config.c index 18db15f8..6a45005d 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -38,7 +38,6 @@ ObPlacePolicy config_place_policy; gchar *config_theme; gboolean config_theme_keepborder; -gboolean config_theme_hidedisabled; gchar *config_title_layout; @@ -88,7 +87,6 @@ GSList *config_menu_files; gint config_resist_win; gint config_resist_edge; -gboolean config_resist_layers_below; GSList *config_per_app_settings; @@ -466,13 +464,18 @@ static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, g_free(c); } if ((n = parse_find_node("titleLayout", node))) { + gchar *c, *d; + g_free(config_title_layout); config_title_layout = parse_string(doc, n); + + /* replace duplicates with spaces */ + for (c = config_title_layout; *c != '\0'; ++c) + for (d = c+1; *d != '\0'; ++d) + if (*c == *d) *d = ' '; } if ((n = parse_find_node("keepBorder", node))) config_theme_keepborder = parse_bool(doc, n); - if ((n = parse_find_node("hideDisabled", node))) - config_theme_hidedisabled = parse_bool(doc, n); if ((n = parse_find_node("animateIconify", node))) config_animate_iconify = parse_bool(doc, n); @@ -701,8 +704,6 @@ static void parse_resistance(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_resist_win = parse_int(doc, n); if ((n = parse_find_node("screen_edge_strength", node))) config_resist_edge = parse_int(doc, n); - if ((n = parse_find_node("edges_hit_layers_below", node))) - config_resist_layers_below = parse_bool(doc, n); } typedef struct @@ -747,7 +748,7 @@ static void bind_default_mouse() { "Middle", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Right", "Desktop", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "Titlebar", OB_MOUSE_ACTION_PRESS, "Focus" }, - { "Left", "Handle", OB_MOUSE_ACTION_PRESS, "Focus" }, + { "Left", "Bottom", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "BLCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "BRCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, { "Left", "TLCorner", OB_MOUSE_ACTION_PRESS, "Focus" }, @@ -761,7 +762,6 @@ static void bind_default_mouse() { "Left", "Client", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Titlebar", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Middle", "Titlebar", OB_MOUSE_ACTION_CLICK, "Lower" }, - { "Left", "Handle", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "BLCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "BRCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "TLCorner", OB_MOUSE_ACTION_CLICK, "Raise" }, @@ -827,7 +827,6 @@ void config_startup(ObParseInst *i) config_animate_iconify = TRUE; config_title_layout = g_strdup("NLIMC"); config_theme_keepborder = TRUE; - config_theme_hidedisabled = FALSE; config_font_activewindow = NULL; config_font_inactivewindow = NULL; @@ -880,7 +879,6 @@ void config_startup(ObParseInst *i) config_resist_win = 10; config_resist_edge = 20; - config_resist_layers_below = FALSE; parse_register(i, "resistance", parse_resistance, NULL);