]> git.sur5r.net Git - i3/i3/commit - include/config_directives.h
Added 'focus_on_window_activation' directive
authorIngo Bürk <ingo.buerk@tngtech.com>
Mon, 30 Mar 2015 20:07:48 +0000 (22:07 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Mon, 30 Mar 2015 20:09:36 +0000 (22:09 +0200)
commit9bf161710b20238d377e8f14c29539e8d7e16e82
treea32dcab6446fd2bd6e27f03e615a85a22a59e095
parent2759a308a2a026759e063599f8ed8c99c4500502
Added 'focus_on_window_activation' directive

When a window receives a _NET_ACTIVE_WINDOW message, it can steal the focus. This may not be preferable to all users.
With this directive, the user can choose from one of the following:
1) 'smart' - focus the container if its workspace is visible, otherwise set the urgency flag (default)
2) 'urgent' - always set the urgency flag, do not steal focus
3) 'focus' - always switch focus, never set the urgency hint
4) 'none' - ignore the request entirely (do not switch focus, nor set the urgency hint)

fixes #1426
include/config.h
include/config_directives.h
parser-specs/config.spec
src/config_directives.c
src/handlers.c
testcases/t/201-config-parser.t