X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fconfig.c;h=96f3ba8afdeedc6520554fa52145195e16a77ed3;hb=97792a403a52c12c2601a7b2caebdea197f0b5f0;hp=48df2e799e0c6694586f53751492ad488d5e6949;hpb=828d06f271392abbef75bb37e2635b2085bdef90;p=chaz%2Fopenbox diff --git a/openbox/config.c b/openbox/config.c index 48df2e79..96f3ba8a 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -79,6 +79,7 @@ guint config_keyboard_reset_state; gint config_mouse_threshold; gint config_mouse_dclicktime; +gint config_mouse_screenedgetime; guint config_menu_hide_delay; gboolean config_menu_middle; @@ -422,6 +423,8 @@ static void parse_mouse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, config_mouse_threshold = parse_int(doc, n); if ((n = parse_find_node("doubleClickTime", node))) config_mouse_dclicktime = parse_int(doc, n); + if ((n = parse_find_node("screenEdgeWarpTime", node))) + config_mouse_screenedgetime = parse_int(doc, n); n = parse_find_node("context", node); while (n) { @@ -760,23 +763,6 @@ typedef struct const gchar *actname; } ObDefKeyBind; -static void bind_default_keyboard() -{ - ObDefKeyBind *it; - ObDefKeyBind binds[] = { - { "A-Tab", "NextWindow" }, - { "S-A-Tab", "PreviousWindow" }, - { "A-F4", "Close" }, - { NULL, NULL } - }; - - for (it = binds; it->key; ++it) { - GList *l = g_list_append(NULL, g_strdup(it->key)); - keyboard_bind(l, actions_parse_string(it->actname)); - g_list_free(l); - } -} - typedef struct { const gchar *button; @@ -821,10 +807,10 @@ static void bind_default_mouse() { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Raise" }, { "Left", "Close", OB_MOUSE_ACTION_CLICK, "Close" }, - { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "ToggleMaximizeFull" }, + { "Left", "Maximize", OB_MOUSE_ACTION_CLICK, "Maximize" }, { "Left", "Iconify", OB_MOUSE_ACTION_CLICK, "Iconify" }, - { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "ToggleOmnipresent" }, - { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "ToggleShade" }, + { "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Omnipresent" }, + { "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Shade" }, { "Left", "TLCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "TRCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, { "Left", "BLCorner", OB_MOUSE_ACTION_MOTION, "Resize" }, @@ -900,12 +886,11 @@ void config_startup(ObParseInst *i) translate_key("C-g", &config_keyboard_reset_state, &config_keyboard_reset_keycode); - bind_default_keyboard(); - parse_register(i, "keyboard", parse_keyboard, NULL); config_mouse_threshold = 8; config_mouse_dclicktime = 200; + config_mouse_screenedgetime = 400; bind_default_mouse();