Invert logic for the last commit

This makes it more clear that the option is meant to be a special
case (it *disables* part of the focus handling). Also, when
initializing the config data structure with zeros, it will get
initialized with the right value.

Furthermore, the config file parser now also accepts various values
which represent "true", not only numbers.
This commit is contained in:
Michael Stapelberg
2010-01-29 21:51:38 +01:00
parent 7f10970fc7
commit 88b9700cdb
3 changed files with 26 additions and 5 deletions

View File

@ -236,7 +236,7 @@ int handle_enter_notify(void *ignored, xcb_connection_t *conn, xcb_enter_notify_
return 1;
}
if (config.focus_follows_mouse)
if (!config.disable_focus_follows_mouse)
set_focus(conn, client, false);
return 1;