Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2010 09:24:15 -0800 (PST)
From:      Renato Botelho <garga@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        wen@FreeBSD.org
Subject:   ports/153348: [PATCH] sysutils/tmux: Fix urgent signal for window manager
Message-ID:  <20101221172411.5983.qmail@botelhor.bplab.local>
Resent-Message-ID: <201012211800.oBLI0NQu048716@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153348
>Category:       ports
>Synopsis:       [PATCH] sysutils/tmux: Fix urgent signal for window manager
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 21 18:00:22 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Renato Botelho
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
FreeBSD.org
>Environment:
System: FreeBSD botelhor.bplab.local 9.0-CURRENT FreeBSD 9.0-CURRENT #4 r216464M: Wed Dec 15 22:11:43 BRST
>Description:
I use awesome window manager and urxvt, and when mutt or irrsi send an urgent
signal, awesome deal with it painting tag with different color to notify me
about it.

When i tried to use it with tmux, it simply didn't work, after a little look
at google i found a patch [1] from arch linux, it's working perfect here.

[1] https://bbs.archlinux.org/viewtopic.php?id=104924

Added file(s):
- files/patch-server-window.c

Port maintainer (wen@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- tmux-1.3_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/tmux/Makefile,v
retrieving revision 1.18
diff -u -u -r1.18 Makefile
--- Makefile	5 Aug 2010 12:27:04 -0000	1.18
+++ Makefile	21 Dec 2010 17:22:06 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	tmux
 PORTVERSION=	1.3
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/sysutils/tmux/distinfo,v
retrieving revision 1.13
diff -u -u -r1.13 distinfo
--- distinfo	5 Aug 2010 12:27:04 -0000	1.13
+++ distinfo	21 Dec 2010 17:22:06 -0000
@@ -1,3 +1,2 @@
-MD5 (tmux-1.3.tar.gz) = 96e60cb206de2db0610b9fb6a64c2251
 SHA256 (tmux-1.3.tar.gz) = 72c2d6f1c30fb4ccbd29b530a7d8a08e67c9c2d87ac8d67e3806561670fc0362
 SIZE (tmux-1.3.tar.gz) = 251999
Index: files/patch-server-window.c
===================================================================
RCS file: files/patch-server-window.c
diff -N files/patch-server-window.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-server-window.c	21 Dec 2010 17:22:06 -0000
@@ -0,0 +1,15 @@
+--- server-window.c.orig	2010-12-21 10:01:51.000000000 -0200
++++ server-window.c	2010-12-21 10:05:11.000000000 -0200
+@@ -109,10 +109,8 @@
+ 
+ 	if (!(w->flags & WINDOW_BELL) || wl->flags & WINLINK_BELL)
+ 		return (0);
+-	if (s->curw == wl)
+-		return (0);
+-
+-	wl->flags |= WINLINK_BELL;
++	if (s->curw != wl)
++		wl->flags |= WINLINK_BELL;
+ 
+ 	action = options_get_number(&s->options, "bell-action");
+ 	switch (action) {
--- tmux-1.3_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101221172411.5983.qmail>