The branch, hooks has been updated
via 7bf8fe4767c41aeccac94211ad13f076f6586290 (commit)
from 363c32c4f840ff83c51a87ef7cf26645f7e58b21 (commit)
- Log -----------------------------------------------------------------
commit 7bf8fe4767c41aeccac94211ad13f076f6586290
Author: Thomas Adam <[email protected]>
Commit: Thomas Adam <[email protected]>
Trigger bells etc., across all sessions attached or not
Allowing sessions---including detached ones---to trigger events for bells,
visual status, etc., becomes more important with hook support. Remove this
restriction.
---
server-window.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/server-window.c b/server-window.c
index c2dc177..72a9d37 100644
--- a/server-window.c
+++ b/server-window.c
@@ -104,10 +104,8 @@ server_window_check_bell(struct session *s, struct winlink
*wl)
if (!(w->flags & WINDOW_BELL) || wl->flags & WINLINK_BELL)
return (0);
- if (s->curw != wl || s->flags & SESSION_UNATTACHED)
+ if (s->curw != wl)
wl->flags |= WINLINK_BELL;
- if (s->flags & SESSION_UNATTACHED)
- return (0);
if (s->curw->window == w)
w->flags &= ~WINDOW_BELL;
@@ -146,7 +144,7 @@ server_window_check_activity(struct session *s, struct
winlink *wl)
if (!(w->flags & WINDOW_ACTIVITY) || wl->flags & WINLINK_ACTIVITY)
return (0);
- if (s->curw == wl && !(s->flags & SESSION_UNATTACHED))
+ if (s->curw == wl)
return (0);
if (!options_get_number(&w->options, "monitor-activity"))
@@ -181,7 +179,7 @@ server_window_check_silence(struct session *s, struct
winlink *wl)
if (!(w->flags & WINDOW_SILENCE) || wl->flags & WINLINK_SILENCE)
return (0);
- if (s->curw == wl && !(s->flags & SESSION_UNATTACHED)) {
+ if (s->curw == wl) {
/*
* Reset the timer for this window if we've focused it. We
* don't want the timer tripping as soon as we've switched away
-----------------------------------------------------------------------
Summary of changes:
server-window.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
hooks/post-receive
--
tmux
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs