summaryrefslogtreecommitdiffstats
path: root/alerts.c
AgeCommit message (Collapse)Author
2021-01-17Look for libevent2 differently from libevent for platforms with both.Nicholas Marriott
2020-08-19Set alert flag for the current window if the session is unattached.nicm
GitHub issues 1182 and 2299. From Eric Garver.
2020-07-27Add a -d option to display-message to set delay, from theonekeyg atnicm
gmail dot com in GitHub issue 2322.
2020-05-16Support embedded styles in the display-message message, GitHub issuenicm
2206.
2017-12-28Redrawing status is needed after changing window flags or title does notnicm
update if status line is off, GitHub issue 1191.
2017-09-22Initialize alerts timer event where it is used, avoids crash with new windows.nicm
2017-09-11Check event is initialized before delete; fixes crash reported bynicm
Michael Nickerson in GitHub issue 1068.
2017-08-23Allow multiple bells even if there is an existing bell (but not activitynicm
or silence), from Brad Town.
2017-08-23Run alert hooks based on the options rather than unconditionally, fromnicm
Brad Town.
2017-08-17Add monitor-bell window option to match the activity and silencenicm
options, from Brad Town.
2017-08-16Rename BELL_* values to ALERT_* now they are used by more than bells,nicm
based on a diff from Brad Town.
2017-07-26Always reset the alerts timer so it works even if activity and silencenicm
are enabled on the same window.
2017-07-26Make bell, activity and silence alerting more consistent:nicm
- remove the bell-on-alert option; - add activity-action and silence-action options with the same possible values as the existing bell-action; - add "both" value for the visual-bell, visual-activity and visual-silence options to trigger both a bell and a message. This means all three work the same way. Based on changes from Yvain Thonnart.
2017-06-28Fix visual-silence (check accidentally the wrong way round), from Bradnicm
Town. Plus some tmux.1 fixes from jmc@.
2017-04-28Log what is happening with window and session reference counts much morenicm
obviously.
2017-04-28Do not put the window on the alerts queue and add a reference unless thenicm
alert is enabled and we are actually going to add the alerts event.
2017-04-21More unnecessary arguments now winlink points back to session.nicm
2016-11-01Clear window alert flags after setting winlink alert flags, fixes problemnicm
reported by Tommy Allen.
2016-10-25Do not handle activity or silence alerts in the current window, reportednicm
by jasper@.
2016-10-19Alerts are too slow, so rather than walking all sessions and windows,nicm
add a link of winlinks to each window and a pointer to the session to each winlink. Also rewrite the alerts processing to return to the old behaviour (alert in any window sets the flag on any winlink).
2016-10-16Use notifys for alerts too.nicm
2016-10-03Remove some dead code in cmd-move-window.c and make a load of localnicm
functions static.
2016-05-11Add on alerts rather than ignoring them if the event has already beennicm
queued, for example bell and activity together. From Marcel Lippmann via Romain Francoise.
2016-01-19I no longer use my SourceForge address so replace it.nicm
2016-01-16Add hooks for alerts (bell, silence, activity), from Thomas Adam.nicm
2015-12-07Fix bell indicators across detach, reported by Torbjorn Lonnemark, diffnicm
from Thomas Adam.
2015-11-20The alerts callback should be fired for bells even if bell-action isnicm
none because it also affects the status line bell indicator (and bell-action does not). Fixes a problem reported by tim@.
2015-11-19The activity flag could already be set, so queue the callback always (ifnicm
not already queued) rather than only if the flag is being added. Fixes a problem reported by tim@
2015-11-18Use __unused rather than rolling our own.nicm
2015-10-27Move struct options into options.c.nicm
2015-09-21Reset the alerts timer always on activity, from Thomas Adam.nicm
2015-09-02A one line helper function is a little silly.nicm
2015-08-29Move alerts onto events rather than checking every loop.nicm