]> Dogcows Code - chaz/openbox/blobdiff - openbox/config.c
dont use the _OPENBOX_PREMAX window property anymore, save max and fullscreen pre...
[chaz/openbox] / openbox / config.c
index d05b9ab975cca2278bd1649ef95d9d9df7c99b5c..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;
 
@@ -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,
@@ -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 }
     };
 
@@ -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);
 
This page took 0.021412 seconds and 4 git commands to generate.