desktop notification protocol: Allow applications sending notifications to specify that the notification should only be displayed if the window is currently unfocused

Fixes #6755
This commit is contained in:
Kovid Goyal
2023-10-25 13:52:32 +05:30
parent 8c83284d5e
commit 19374208e0
3 changed files with 38 additions and 4 deletions

View File

@@ -80,6 +80,8 @@ Detailed list of changes
- macOS: Fix a regression in the previous release that caused kitten @ ls to not report the environment variables for the default shell (:iss:`6749`)
- desktop notification protocol: Allow applications sending notifications to specify that the notification should only be displayed if the window is currently unfocused (:iss:`6755`)
0.30.1 [2023-10-05]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -94,9 +94,9 @@ to display it based on what it does understand.
revisions.
======= ==================== ========= =================
======= ==================== ========== =================
Key Value Default Description
======= ==================== ========= =================
======= ==================== ========== =================
``a`` Comma separated list ``focus`` What action to perform when the
of ``report``, notification is clicked
``focus``, with
@@ -113,7 +113,14 @@ Key Value Default Description
``p`` One of ``title`` or ``title`` Whether the payload is the notification title or body. If a
``body``. notification has no title, the body will be used as title.
======= ==================== ========= =================
``o`` One of ``always``, ``always`` When to honor the notification request. ``unfocused`` means when the window
``unfocused`` or the notification is sent on does not have keyboard focus. ``invisible``
``invisible`` means the window both is unfocused
and not visible to the user, for example, because it is in an inactive tab or
its OS window is not currently active.
``always`` is the default and always honors the request.
======= ==================== ========== =================
.. note::