put back default hardcoded mouse bindings. remove default key bindigns
This commit is contained in:
parent
cf640af0ea
commit
8228e90450
1 changed files with 3 additions and 24 deletions
|
@ -760,24 +760,6 @@ typedef struct
|
||||||
const gchar *actname;
|
const gchar *actname;
|
||||||
} ObDefKeyBind;
|
} ObDefKeyBind;
|
||||||
|
|
||||||
static void bind_default_keyboard()
|
|
||||||
{
|
|
||||||
ObDefKeyBind *it;
|
|
||||||
ObDefKeyBind binds[] = {
|
|
||||||
{ NULL, NULL },
|
|
||||||
{ "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
|
typedef struct
|
||||||
{
|
{
|
||||||
const gchar *button;
|
const gchar *button;
|
||||||
|
@ -790,7 +772,6 @@ static void bind_default_mouse()
|
||||||
{
|
{
|
||||||
ObDefMouseBind *it;
|
ObDefMouseBind *it;
|
||||||
ObDefMouseBind binds[] = {
|
ObDefMouseBind binds[] = {
|
||||||
{ NULL, NULL, 0, NULL },
|
|
||||||
{ "Left", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
{ "Left", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
||||||
{ "Middle", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
{ "Middle", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
||||||
{ "Right", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
{ "Right", "Client", OB_MOUSE_ACTION_PRESS, "Focus" },
|
||||||
|
@ -823,10 +804,10 @@ static void bind_default_mouse()
|
||||||
{ "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Raise" },
|
{ "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Raise" },
|
||||||
{ "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Raise" },
|
{ "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Raise" },
|
||||||
{ "Left", "Close", OB_MOUSE_ACTION_CLICK, "Close" },
|
{ "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", "Iconify", OB_MOUSE_ACTION_CLICK, "Iconify" },
|
||||||
{ "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "ToggleOmnipresent" },
|
{ "Left", "AllDesktops", OB_MOUSE_ACTION_CLICK, "Omnipresent" },
|
||||||
{ "Left", "Shade", OB_MOUSE_ACTION_CLICK, "ToggleShade" },
|
{ "Left", "Shade", OB_MOUSE_ACTION_CLICK, "Shade" },
|
||||||
{ "Left", "TLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
{ "Left", "TLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
||||||
{ "Left", "TRCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
{ "Left", "TRCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
||||||
{ "Left", "BLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
{ "Left", "BLCorner", OB_MOUSE_ACTION_MOTION, "Resize" },
|
||||||
|
@ -902,8 +883,6 @@ void config_startup(ObParseInst *i)
|
||||||
translate_key("C-g", &config_keyboard_reset_state,
|
translate_key("C-g", &config_keyboard_reset_state,
|
||||||
&config_keyboard_reset_keycode);
|
&config_keyboard_reset_keycode);
|
||||||
|
|
||||||
bind_default_keyboard();
|
|
||||||
|
|
||||||
parse_register(i, "keyboard", parse_keyboard, NULL);
|
parse_register(i, "keyboard", parse_keyboard, NULL);
|
||||||
|
|
||||||
config_mouse_threshold = 8;
|
config_mouse_threshold = 8;
|
||||||
|
|
Loading…
Reference in a new issue