Date: Wed, 22 Nov 2000 18:14:58 +0900 (JST) From: haro@kubota.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: ports/23019: xbattbar port may leave garbage window when used with unclutter port. Message-ID: <200011220914.eAM9Ewq02068@jkpc15.tk.kubota.co.jp>
next in thread | raw e-mail | index | archive | help
>Number: 23019 >Category: ports >Synopsis: xbattbar leave garbage window when used with unclutter. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 22 01:20:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Munehiro Matsuda >Release: FreeBSD 5.0-CURRENT i386 >Organization: Business Incubation Dept., Kubota Corp. >Environment: System: FreeBSD jkpc15.tk.kubota.co.jp 5.0-CURRENT FreeBSD 5.0-CURRENT #15: Wed Nov 22 15:57:03 JST 2000 haro@jkpc15.tk.kubota.co.jp:/usr/src/sys/compile/JKPC15 i386 XFree86-3.3.6 (From ports) unclutter-8 (From ports) xbattbar-1.3 (From ports) >Description: xbattbar port may leave garbage window when used with unclutter port. >How-To-Repeat: 1. Run xbattbar and unclutter on X Window. 2. Move X mouse cursor on to xbattbar window, which shows diagnose windw. 3. Wait until mouse cursor disappears from xbattbar window, which is done by unclutter. 4. Move mouse cursor within xbattbar window for a second, then leave from it. >Fix: Here is simple patch to xbattbar. This patch has been sent to the auther, also. --- xbattbar.c.orig Fri Nov 27 11:44:57 1998 +++ xbattbar.c Wed Nov 22 17:59:37 2000 @@ -341,6 +341,7 @@ boxh = pixh + DiagYMergin * 2; /* create status window */ + if(winstat != -1) disposediagbox(); winstat = XCreateSimpleWindow(disp, DefaultRootWindow(disp), (width-boxw)/2, (height-boxh)/2, boxw, boxh, @@ -360,7 +361,10 @@ void disposediagbox(void) { - if ( winstat != -1 ) XDestroyWindow(disp, winstat); + if ( winstat != -1 ) { + XDestroyWindow(disp, winstat); + winstat = -1; + } } void battery_proc(int left) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011220914.eAM9Ewq02068>