summaryrefslogtreecommitdiffstats
path: root/notify.c
AgeCommit message (Collapse)Author
2016-10-16Use the notify name string instead of going via an enum and changenicm
existing hooks to use notifys instead.
2016-10-16Merge branch 'obsd-master'Thomas Adam
2016-10-16Add hook_session and hook_window formats to get information on thenicm
affected session or window when a hook fires. Enable session-created and session-closed hooks now that that is available.
2016-10-16Provide a way for hooks to tag formats onto the commands they fire sonicm
that the user can get at additional information - now used for the "hook" format, more to come.
2016-10-16Notifys can go via the command queue instead of using their own queue.nicm
2016-10-16Mass rename struct cmd_q to struct cmdq_item and related.nicm
2016-10-16Merge branch 'obsd-master'Thomas Adam
2016-10-16Rewrite command queue handling. Each client still has a command queue,nicm
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.
2016-10-15Merge branch 'obsd-master'Thomas Adam
2016-10-15Rename a function for consistency and some spacing nits.nicm
2016-10-15Fire hooks on the simple notifys (window-renamed and session-renamed),nicm
the complicated ones get no hooks for now (more to come).
2016-10-15Drain notifys once at the end of the server loop instead of doing itnicm
from the end of every command queue (which could be nested).
2016-10-12Merge branch 'obsd-master'Thomas Adam
Conflicts: format.c osdep-openbsd.c
2016-10-10Loads more static, except for cmd-*.c and window-*.c.nicm
2015-06-07Merge branch 'obsd-master'Thomas Adam
Conflicts: client.c tmux.1 tmux.c
2015-06-05Similarly, for sessions use a callback to free rather than checkingnicm
every loop.
2015-06-05Change deref to the more sensible unref, and add a couple I missed before.nicm
2015-04-25Merge branch 'obsd-master'Thomas Adam
2015-04-24Convert clients list into a TAILQ.nicm
2014-11-08No need for $Id$ now.Nicholas Marriott
2012-09-25Merge branch 'obsd-master'Thomas Adam
Sync from OpenBSD.
2012-09-25Add notification for input from a pane, from George Nachman.Nicholas Marriott
2012-09-04Send notifications to control clients. Also don't redraw client whenNicholas Marriott
suspended.
2012-09-03Send notifications to control clients. Also don't redraw client whenNicholas Marriott
suspended.
2012-08-31Sync OpenBSD patchset 1165:Tiago Cunha
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.
2012-08-21Fix up window reference counting and don't crash if the rename timerNicholas Marriott
fires while the window is dead but still referenced. Fixes problem reported by Michael Scholz.
2012-08-12Remove osdep include.Tiago Cunha
2012-08-12Sync OpenBSD patchset 1153:Tiago Cunha
Add a queue of notifys and a way to turn them off and on (we do not want notifys to happen during some commands). Based on code from George Nachman.
2012-07-13Add a queue of notifys and a way to turn them off and on (we do not wantNicholas Marriott
notifys to happen during some commands). Based on code from George Nachman.
2012-03-18Sync OpenBSD patchset 1069:Tiago Cunha
Add notify hooks for various events, the functions are currently empty stubs but will be filled in for control mode later. From George Nachman.
2012-03-17Add notify hooks for various events, the functions are currently emptyNicholas Marriott
stubs but will be filled in for control mode later. From George Nachman.