summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-20 19:37:27 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-21 10:28:07 +1000
commitc2ed3d8bd6e2ec12f2ce70d7e106c09a7078e91f (patch)
treea1b879569d663c4b95c49985a877b87628dfb10f /include
parentMerge pull request #2318 from RedSoxFan/fix-output-wildcard (diff)
downloadsway-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 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 1e93e2a3..e71a7228 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -113,6 +113,7 @@ sway_cmd cmd_focus_follows_mouse;
113sway_cmd cmd_focus_wrapping; 113sway_cmd cmd_focus_wrapping;
114sway_cmd cmd_font; 114sway_cmd cmd_font;
115sway_cmd cmd_for_window; 115sway_cmd cmd_for_window;
116sway_cmd cmd_force_display_urgency_hint;
116sway_cmd cmd_force_focus_wrapping; 117sway_cmd cmd_force_focus_wrapping;
117sway_cmd cmd_fullscreen; 118sway_cmd cmd_fullscreen;
118sway_cmd cmd_gaps; 119sway_cmd cmd_gaps;
diff --git a/include/sway/config.h b/include/sway/config.h
index 6f6710e9..87768399 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -324,6 +324,7 @@ struct sway_config {
324 char *font; 324 char *font;
325 size_t font_height; 325 size_t font_height;
326 bool pango_markup; 326 bool pango_markup;
327 size_t urgent_timeout;
327 328
328 // Flags 329 // Flags
329 bool focus_follows_mouse; 330 bool focus_follows_mouse;