signal-desktop/js/views
Danny Lin c8261814fd
Add setting to toggle notification attention drawing (#4457)
In many GNU/Linux setups, drawing attention when a notification arrives
causes the Signal window to steal focus immediately and interrupt the
user from what they were doing before the notification arrived. GNOME
Shell is the most prominent example of this behavior, but there are
likely other cases as well. Suddenly stealing focus on external events
like this can even pose a security problem in some cases, e.g. if the
user is in the middle of a typing a sudo password on one monitor while a
notification arrives and focuses Signal on another monitor. See #4452
for more information.

Disabling attention drawing entirely for Linux is also problematic
because some users rely on it as the sole indication of a new message,
as seen in #3582 and #3611.

Commit f790694559 improved the situation
by adding a hidden "--disable-flash-frame" command-line argument, but
this argument is undocumented and manually adding command-line arguments
to the application's .desktop file is not user-friendly.

This commit adds a settings option for whether to draw attention when a
new notification arrives to make it easy for all Linux users to obtain
the appropriate behavior without relying on an undocumented
command-line argument.

Fixes #4452.
2020-08-24 14:45:31 -07:00
..
app_view.js Support system theme on all platforms 2020-07-27 14:39:19 -07:00
banner_view.js Remove jshint - move everything over to eslint 2018-07-17 15:54:32 -07:00
clear_data_view.js Move all remaining stores to SQLCipher 2018-10-31 17:36:51 -07:00
confirmation_dialog_view.js Remove all IndexedDB migration code 2020-04-29 17:42:41 -07:00
contact_list_view.js First-class profile name rendering 2020-07-30 13:27:41 -07:00
conversation_view.js Message Requests improvements 2020-08-06 20:50:54 -04:00
debug_log_view.js Debug Log: Copy URL instead of open in browser 2020-05-05 14:18:46 -07:00
group_member_list_view.js Remove jshint - move everything over to eslint 2018-07-17 15:54:32 -07:00
identicon_svg_view.js Support ultramarine convo colors from Android linked devices 2020-04-15 14:39:48 -07:00
inbox_view.js Show notifications when a user's profile name changes 2020-07-30 13:27:44 -07:00
install_view.js Link flow: Show 'you must upgrade' on 409 server response 2020-05-05 14:18:46 -07:00
key_verification_view.js Don't reset panel on close of recent media pane 2020-07-30 13:17:47 -07:00
list_view.js Upgrade Prettier 2020-01-08 09:44:54 -08:00
phone-input-view.js Keyboard shortcuts and accessibility 2019-11-13 16:53:42 -08:00
react_wrapper_view.js Stickers 2019-05-16 16:10:37 -07:00
recorder_view.js Improve UI around Voice Message limits 2020-02-20 16:24:40 -08:00
safety_number_change_dialog_view.js Update safety number change warning dialog 2020-07-30 13:10:05 -07:00
settings_view.js Add setting to toggle notification attention drawing (#4457) 2020-08-24 14:45:31 -07:00
standalone_registration_view.js Kick off checks for updates in more situations 2019-10-10 14:56:14 -07:00
toast_view.js Save attachments with macOS quarantine attribute 2020-01-09 14:57:43 -05:00
whisper_view.js Set focus properly in confirmation dialogs when in mouse mode 2019-12-16 15:00:24 -08:00