delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/07/19:17:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3E9206B5.6020502@fangorn.ca>
Date: Mon, 07 Apr 2003 19:16:05 -0400
From: Mark Blackburn <marklist AT fangorn DOT ca>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3) Gecko/20030312
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Pb with rxvt-2.7.10-3, libW11.dll (doubled KP_Subtract and KP_Add)
References: <courier DOT 3E9142AC DOT 00005571 AT softhome DOT net>
In-Reply-To: <courier.3E9142AC.00005571@softhome.net>

--------------000308050005080902000809
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

gagou AT softhome DOT net wrote:

> Hi,
> I recently updated cygwin package rxvt from 2.7.9-4 to 2.7.10-3 and I 
> noticed that the "windows version" (out of X11) print 2 times the 
> chars KP_Subtract and KP_Add. The "X11 version" is OK.
> I've got this problem under w2k and xp.
> If I revert libW11.dll to the one included in 2.7.9-4, the problem 
> disapears.
> Did someone else noticed this ? (Is it a bug or a problem in my 
> configuration ?)
> Thanks,
> Gael.

I'm having this problem too. I'm running cygwin 1.3.22, rxvt-2.7.10-3, 
Windows 98.
I've found that by reverting some of the more recent patch in the CVS 
repository for rxvt the doubling of the KP Add/Subtract is fixed.

Patch is attached to show what I mean.




--------------000308050005080902000809
Content-Type: text/plain;
 name="rxvt.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="rxvt.patch"

--- rxvt/W11/w32/event.c	2003-03-31 20:26:54.000000000 -0500
+++ rxvt-me/W11/w32/event.c	2003-04-07 18:30:24.000000000 -0400
@@ -123,10 +123,8 @@
 static void
 doTranslateMessage(MSG *m)
 {
-	if ((m->message == WM_KEYDOWN) && 
-	    ((m->wParam == VK_BACK) ||
-	     (((m->wParam == VK_ADD) || (m->wParam == VK_SUBTRACT)) &&
-	      (GetKeyState(VK_SHIFT) & 0x8000)))) return;
+	if ((m->message == WM_KEYDOWN) && (m->wParam == VK_BACK))
+		  return;
 	if ((m->message == WM_SYSKEYDOWN) && (m->wParam == VK_F10))
 	{
 	    m->message = WM_KEYDOWN;
@@ -315,8 +313,6 @@
                 case VK_F10:
                 case VK_F11:
 	        case VK_F12:
-	        case VK_ADD:
-	        case VK_SUBTRACT:
 		    QEvent(wineventq,window,message,wParam,lParam);
 		    break;
 		default:
@@ -574,8 +570,6 @@
                     case VK_F10:     key=XK_F10;         break;
                     case VK_F11:     key=XK_F11;         break;
                     case VK_F12:     key=XK_F12;         break;
-		    case VK_ADD:     key=XK_KP_Add;      break;
-		    case VK_SUBTRACT:key=XK_KP_Subtract; break;
 		    default:         key=0;              break;
 		}
 		if (key == 0) {


--------------000308050005080902000809
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------000308050005080902000809--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019