diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-20 19:37:27 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-21 10:28:07 +1000 |
commit | c2ed3d8bd6e2ec12f2ce70d7e106c09a7078e91f (patch) | |
tree | a1b879569d663c4b95c49985a877b87628dfb10f /sway/config.c | |
parent | Merge pull request #2318 from RedSoxFan/fix-output-wildcard (diff) | |
download | sway-c2ed3d8bd6e2ec12f2ce70d7e106c09a7078e91f.tar.gz sway-c2ed3d8bd6e2ec12f2ce70d7e106c09a7078e91f.tar.zst sway-c2ed3d8bd6e2ec12f2ce70d7e106c09a7078e91f.zip |
Implement force_display_urgency_hint
The directive sets the timeout before an urgent view becomes normal
again after switching to it from another workspace.
Also:
* When an xwayland surface removes the urgent hint while the timer is
active, we now ignore the request. This happens as soon as the view
receives focus, so it was effectively making the timer pointless.
* The timeout is now only applied when switching to it from another
workspace.
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 00500812..4b892852 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -186,6 +186,7 @@ static void config_defaults(struct sway_config *config) { | |||
186 | config->default_orientation = L_NONE; | 186 | config->default_orientation = L_NONE; |
187 | if (!(config->font = strdup("monospace 10"))) goto cleanup; | 187 | if (!(config->font = strdup("monospace 10"))) goto cleanup; |
188 | config->font_height = 17; // height of monospace 10 | 188 | config->font_height = 17; // height of monospace 10 |
189 | config->urgent_timeout = 500; | ||
189 | 190 | ||
190 | // floating view | 191 | // floating view |
191 | config->floating_maximum_width = 0; | 192 | config->floating_maximum_width = 0; |