Implement focus_on_window_activation

Depends on https://github.com/swaywm/wlroots/pull/1223
This commit is contained in:
Ryan Dwyer 2018-09-02 15:03:58 +10:00
parent 159edc6d13
commit f057a0195e
8 changed files with 86 additions and 0 deletions

View file

@ -57,6 +57,16 @@ struct sway_mouse_binding {
char *command;
};
/**
* Focus on window activation.
*/
enum fowa {
FOWA_SMART,
FOWA_URGENT,
FOWA_FOCUS,
FOWA_NONE,
};
/**
* A "mode" of keybindings created via the `mode` command.
*/
@ -340,6 +350,7 @@ struct sway_config {
size_t font_height;
bool pango_markup;
size_t urgent_timeout;
enum fowa focus_on_window_activation;
// Flags
bool focus_follows_mouse;