add "Bottom" context too. just make Handle and Bottom synonomous.
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 03:24:29 +0000 (03:24 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 03:24:29 +0000 (03:24 +0000)
data/rc.xsd
openbox/config.c
openbox/frame.c

index 752517633d79af5b444366a93bccf5153150a219..d883e8bf9c10752f0b34a60188ea9f71f7f714ef 100644 (file)
             <xsd:enumeration value="BLCorner"/>
             <xsd:enumeration value="BRCorner"/>
             <xsd:enumeration value="Top"/>
+            <xsd:enumeration value="Bottom"/>
             <xsd:enumeration value="Handle"/>
             <xsd:enumeration value="Maximize"/>
             <xsd:enumeration value="AllDesktops"/>
index 75a60ff7ebc59f98d58f4903b4f1a5d16369eb0a..6a45005d81f31d6b6fb11099a62d2fcf23e50ea3 100644 (file)
@@ -748,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" },
index 44fea5bc03017d80f58b3948deb8abda77909698..16c879e9f3f8515457f8a57bfd4d07cd45beee80 100644 (file)
@@ -836,6 +836,8 @@ ObFrameContext frame_context_from_string(const gchar *name)
         return OB_FRAME_CONTEXT_TOP;
     else if (!g_ascii_strcasecmp("Handle", name))
         return OB_FRAME_CONTEXT_BOTTOM;
+    else if (!g_ascii_strcasecmp("Bottom", name))
+        return OB_FRAME_CONTEXT_BOTTOM;
     else if (!g_ascii_strcasecmp("Maximize", name))
         return OB_FRAME_CONTEXT_MAXIMIZE;
     else if (!g_ascii_strcasecmp("AllDesktops", name))