int container_stack_limit;
int container_stack_limit_value;
+ bool focus_follows_mouse;
+
const char *default_border;
/** The modifier which needs to be pressed in combination with your mouse
ipc_socket { BEGIN(BIND_AWS_COND); return TOKIPCSOCKET; }
new_container { return TOKNEWCONTAINER; }
new_window { return TOKNEWWINDOW; }
+focus_follows_mouse { return TOKFOCUSFOLLOWSMOUSE; }
default { yylval.number = MODE_DEFAULT; return TOKCONTAINERMODE; }
stacking { yylval.number = MODE_STACK; return TOKCONTAINERMODE; }
tabbed { yylval.number = MODE_TABBED; return TOKCONTAINERMODE; }
%token TOKMODE
%token TOKNEWCONTAINER
%token TOKNEWWINDOW
+%token TOKFOCUSFOLLOWSMOUSE
%token TOKCONTAINERMODE
%token TOKSTACKLIMIT
| floating_modifier
| new_container
| new_window
+ | focus_follows_mouse
| workspace
| assign
| ipcsocket
}
;
+focus_follows_mouse:
+ TOKFOCUSFOLLOWSMOUSE WHITESPACE NUMBER
+ {
+ config.focus_follows_mouse = ($<number>3 == 0 ? 0 : 1);
+ }
+ ;
+
workspace:
TOKWORKSPACE WHITESPACE NUMBER WHITESPACE TOKSCREEN WHITESPACE screen optional_workspace_name
{
return 1;
}
- set_focus(conn, client, false);
+ if (config.focus_follows_mouse)
+ set_focus(conn, client, false);
return 1;
}