aboutsummaryrefslogtreecommitdiff
path: root/notify.c
Commit message (Collapse)AuthorAge
* Merge branch 'obsd-master'Thomas Adam2019-12-19
|\
| * When adding a list with multiple commands to the queue, the next item tonicm2019-12-19
| | | | | | | | | | insert after needs to be the last one added, not the first. Reported by Jason Kim in GitHub issue 2023.
* | Merge branch 'obsd-master'Thomas Adam2019-05-07
|\|
| * Do not use evbuffer_add_buffer because it is destructive and doesn'tnicm2019-05-07
| | | | | | | | work in newer libevent.
* | Merge branch 'obsd-master'Thomas Adam2019-04-27
|\|
| * Merge hooks into options and make each one an array option. This allowsnicm2019-04-26
| | | | | | | | | | | | | | multiple commands to be easily bound to one hook. set-hook and show-hooks remain but they are now variants of set-option and show-options. show-options now has a -H flag to show hooks (by default they are not shown).
* | Merge branch 'obsd-master'Thomas Adam2018-07-04
|\|
| * Add set-hook -R to run a hook immediately (useful to set multiple hooksnicm2018-07-04
| | | | | | | | to the same thing).
* | Merge branch 'obsd-master'Thomas Adam2017-08-30
|\|
| * Pass flags into cmd_find_from_* to fix prefer-unattached, reported bynicm2017-08-30
| | | | | | | | Thomas Sattler.
* | Merge branch 'obsd-master'Thomas Adam2017-05-04
|\|
| * Some new notifications, mainly for active pane and current window andnicm2017-05-04
| | | | | | | | | | | | | | | | | | | | | | session: pane-mode-changed window-pane-changed client-session-changed session-window-changed From Joshua Brot.
* | Merge branch 'obsd-master'Thomas Adam2017-04-28
|\|
| * Log what is happening with window and session reference counts much morenicm2017-04-28
| | | | | | | | obviously.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * Make the cmd_find_* functions more obvious when looking for a client,nicm2017-04-21
| | | | | | | | | | rather than having it inside other functions. Should be no change to the way targets are resolved just yet.
* | Merge branch 'obsd-master'Thomas Adam2017-04-21
|\|
| * More unnecessary arguments now winlink points back to session.nicm2017-04-21
| |
* | Merge branch 'obsd-master'Thomas Adam2017-01-11
|\|
| * Some tidying and tweaks to options code.nicm2017-01-11
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-17
|\|
| * Use notifys for alerts too.nicm2016-10-16
| |
| * Use the notify name string instead of going via an enum and changenicm2016-10-16
| | | | | | | | existing hooks to use notifys instead.
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Add hook_session and hook_window formats to get information on thenicm2016-10-16
| | | | | | | | | | affected session or window when a hook fires. Enable session-created and session-closed hooks now that that is available.
| * Provide a way for hooks to tag formats onto the commands they fire sonicm2016-10-16
| | | | | | | | | | that the user can get at additional information - now used for the "hook" format, more to come.
| * Notifys can go via the command queue instead of using their own queue.nicm2016-10-16
| |
| * Mass rename struct cmd_q to struct cmdq_item and related.nicm2016-10-16
| |
* | Merge branch 'obsd-master'Thomas Adam2016-10-16
|\|
| * Rewrite command queue handling. Each client still has a command queue,nicm2016-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | but there is also now a global command queue. Instead of command queues being dispatched on demand from wherever the command happens to be added, they are now all dispatched from the top level server loop. Command queues may now also include callbacks as well as commands, and items may be inserted after the current command as well as at the end. This all makes command queues significantly more predictable and easier to use, and avoids the complex multiple nested command queues used by source-file, if-shell and friends. A mass rename of struct cmdq to a better name (cmdq_item probably) is coming.
* | Merge branch 'obsd-master'Thomas Adam2016-10-15
|\|
| * Rename a function for consistency and some spacing nits.nicm2016-10-15
| |
| * Fire hooks on the simple notifys (window-renamed and session-renamed),nicm2016-10-15
| | | | | | | | the complicated ones get no hooks for now (more to come).
| * Drain notifys once at the end of the server loop instead of doing itnicm2016-10-15
| | | | | | | | from the end of every command queue (which could be nested).
* | Merge branch 'obsd-master'Thomas Adam2016-10-12
|\| | | | | | | | | | | Conflicts: format.c osdep-openbsd.c
| * Loads more static, except for cmd-*.c and window-*.c.nicm2016-10-10
| |
* | Merge branch 'obsd-master'Thomas Adam2015-06-07
|\| | | | | | | | | | | | | Conflicts: client.c tmux.1 tmux.c
| * Similarly, for sessions use a callback to free rather than checkingnicm2015-06-05
| | | | | | | | every loop.
| * Change deref to the more sensible unref, and add a couple I missed before.nicm2015-06-05
| |
* | Merge branch 'obsd-master'Thomas Adam2015-04-25
|\|
| * Convert clients list into a TAILQ.nicm2015-04-24
| |
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2012-09-25
|\| | | | | | | Sync from OpenBSD.
| * Add notification for input from a pane, from George Nachman.Nicholas Marriott2012-09-25
| |
| * Send notifications to control clients. Also don't redraw client whenNicholas Marriott2012-09-03
| | | | | | | | suspended.
| * Fix up window reference counting and don't crash if the rename timerNicholas Marriott2012-08-21
| | | | | | | | | | fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
| * Add a queue of notifys and a way to turn them off and on (we do not wantNicholas Marriott2012-07-13
| | | | | | | | | | notifys to happen during some commands). Based on code from George Nachman.
| * Add notify hooks for various events, the functions are currently emptyNicholas Marriott2012-03-17
| | | | stubs but will be filled in for control mode later. From George Nachman.
* Send notifications to control clients. Also don't redraw client whenNicholas Marriott2012-09-04
| | | | suspended.
* Sync OpenBSD patchset 1165:Tiago Cunha2012-08-31
| | | | | | | Fix up window reference counting and don't crash if the rename timer fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.