]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.c
indenting
[chaz/openbox] / openbox / config.c
index c58033bb016d2e468423f09b98d5b046a49d51fc..72aa88a914e3a366482d6c88118d9e95d9e6985e 100644 (file)
@@ -26,7 +26,9 @@
 
 gboolean config_focus_new;
 gboolean config_focus_follow;
+gboolean config_focus_last;
 guint    config_focus_delay;
+guint    config_focus_raise;
 
 char *config_theme;
 
@@ -44,7 +46,7 @@ gint            config_dock_x;
 gint            config_dock_y;
 ObOrientation   config_dock_orient;
 gboolean        config_dock_hide;
-guint           config_dock_hide_timeout;
+guint           config_dock_hide_delay;
 
 guint config_keyboard_reset_keycode;
 guint config_keyboard_reset_state;
@@ -195,8 +197,12 @@ static void parse_focus(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
         config_focus_new = parse_bool(doc, n);
     if ((n = parse_find_node("followMouse", node)))
         config_focus_follow = parse_bool(doc, n);
+    if ((n = parse_find_node("focusLast", node)))
+        config_focus_last = parse_bool(doc, n);
     if ((n = parse_find_node("focusDelay", node)))
         config_focus_delay = parse_int(doc, n) * 1000;
+    if ((n = parse_find_node("raiseOnFocus", node)))
+        config_focus_raise = parse_bool(doc, n);
 }
 
 static void parse_theme(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
@@ -317,8 +323,8 @@ static void parse_dock(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
     }
     if ((n = parse_find_node("autoHide", node)))
         config_dock_hide = parse_bool(doc, n);
-    if ((n = parse_find_node("hideTimeout", node)))
-        config_dock_hide_timeout = parse_int(doc, n) * 1000;
+    if ((n = parse_find_node("hideDelay", node)))
+        config_dock_hide_delay = parse_int(doc, n) * 1000;
 }
 
 static void parse_menu(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, void *d)
@@ -359,21 +365,7 @@ static void bind_default_keyboard()
     ObDefKeyBind binds[] = {
         { "A-Tab", "NextWindow" },
         { "S-A-Tab", "PreviousWindow" },
-        { "C-A-Right", "DesktopRight" },
-        { "C-A-Left", "DesktopLeft" },
-        { "C-A-Up", "DesktopUp" },
-        { "C-A-Down", "DesktopDown" },
-        { "S-A-Right", "SendToDesktopRight" },
-        { "S-A-Left", "SendToDesktopLeft" },
-        { "S-A-Up", "SendToDesktopUp" },
-        { "S-A-Down", "SendToDesktopDown" },
-        { "A-F10", "MaximizeFull" },
-        { "A-F5", "UnmaximizeFull" },
-        { "A-F12", "ToggleShade" },
         { "A-F4", "Close" },
-        { "A-F7", "Move" },
-        { "A-F8", "Resize" },
-        { "A-F9", "Iconify" },
         { NULL, NULL }
     };
 
@@ -388,7 +380,7 @@ typedef struct
 {
     const gchar *button;
     const gchar *context;
-    ObMouseAction mact;
+    const ObMouseAction mact;
     const gchar *actname;
 } ObDefMouseBind;
 
@@ -396,14 +388,6 @@ static void bind_default_mouse()
 {
     ObDefMouseBind *it;
     ObDefMouseBind binds[] = {
-        { "Up", "Desktop", OB_MOUSE_ACTION_PRESS, "DesktopNext" },
-        { "Down", "Desktop", OB_MOUSE_ACTION_PRESS, "DesktopPrevious" },
-        { "A-Up", "Desktop", OB_MOUSE_ACTION_PRESS, "DesktopNext" },
-        { "A-Down", "Desktop", OB_MOUSE_ACTION_PRESS, "DesktopPrevious" },
-        { "A-Up", "Frame", OB_MOUSE_ACTION_PRESS, "DesktopNext" },
-        { "A-Down", "Frame", OB_MOUSE_ACTION_PRESS, "DesktopPrevious" },
-        { "A-Up", "MoveResize", OB_MOUSE_ACTION_PRESS, "DesktopNext" },
-        { "Down", "MoveResize", OB_MOUSE_ACTION_PRESS, "DesktopPrevious" },
         { "Left", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
         { "Middle", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
         { "Right", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
@@ -476,7 +460,9 @@ void config_startup(ObParseInst *i)
 {
     config_focus_new = TRUE;
     config_focus_follow = FALSE;
+    config_focus_last = TRUE;
     config_focus_delay = 0;
+    config_focus_raise = FALSE;
 
     parse_register(i, "focus", parse_focus, NULL);
 
@@ -502,7 +488,7 @@ void config_startup(ObParseInst *i)
     config_dock_y = 0;
     config_dock_orient = OB_ORIENTATION_VERT;
     config_dock_hide = FALSE;
-    config_dock_hide_timeout = 300;
+    config_dock_hide_delay = 300;
 
     parse_register(i, "dock", parse_dock, NULL);
 
This page took 0.02587 seconds and 4 git commands to generate.