mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Implement focus_on_window_activation
Depends on https://github.com/swaywm/wlroots/pull/1223
This commit is contained in:
parent
159edc6d13
commit
f057a0195e
8 changed files with 86 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue