Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 1999 17:59:45 +0800 (CST)
From:      clkao@CirX.ORG
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12733: Patch to xcin 2.3
Message-ID:  <199907210959.RAA08331@genius.cirx.org>

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

>Number:         12733
>Category:       ports
>Synopsis:       Patch to xcin 2.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 21 03:10:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Chia-liang Kao
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
CirX
>Environment:

FreeBSD genius.cirx.org 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Sun Jun 27 22:53:51 CST 1999     root@career.ntu.edu.tw:/usr/src/sys/compile/GENIUS  i386

>Description:

This patch was submitted to the xcin team, but the release including this patch
never came out and the development bumped to a new tree.

This patch avoids blinking of the status line when changing IC.

>How-To-Repeat:
>Fix:

Please add the following patch to patches/patch-ab

--- src/xi.c.orig	Wed Jul 21 16:38:43 1999
+++ src/xi.c	Wed Jul 21 17:10:26 1999
@@ -1056,19 +1056,25 @@
 
 void switch_active_client( InmdState *state, Window cli_win )
 {
+  int refresh = 1;
   last_win = cli_win;
 
   if ( ignore_cli_stat )
 	ignore_cli_stat = 0;
   else
      if ( state->_CurInMethod )
-	memcpy( &inmdstate, state, sizeof( inmdstate ) );
+	if(memcmp(&inmdstate, state, sizeof( inmdstate)))
+	    memcpy( &inmdstate, state, sizeof( inmdstate ) );
+	else                                                     
+	    refresh = 0;
 
   if ( hide_xcin && ( EngChi || HalfFull ) )
      Show_Xcin();
   else if ( hide_xcin && !EngChi && !HalfFull )
      XUnmapWindow( display, main_win );
 
+  if(!refresh)
+    return;
   gotoxy( 0, MROW - 1 );
 
   ClrShowArea( 0 );

>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?199907210959.RAA08331>