From e013deb46c721ece85871711e07e768af4f0037d Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sun, 4 Feb 2007 18:39:05 +0000 Subject: [PATCH] Reinitialize the local display modifier mask table on MappingModifier requests in MappingNotify events, so that the user can reconfigure modifier masks on the fly without confusing Scheme programs. --- v7/src/microcode/x11base.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/x11base.c b/v7/src/microcode/x11base.c index c2e27a193..35854db46 100644 --- a/v7/src/microcode/x11base.c +++ b/v7/src/microcode/x11base.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: x11base.c,v 1.92 2007/02/04 18:36:12 riastradh Exp $ +$Id: x11base.c,v 1.93 2007/02/04 18:39:05 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -1038,8 +1038,10 @@ xw_process_event (struct xwindow * xw, XEvent * event) case MappingNotify: switch ((event->xmapping) . request) { - case MappingKeyboard: case MappingModifier: + x_initialize_display_modifier_masks ((XW_XD (xw))); + /* Fall through. */ + case MappingKeyboard: XRefreshKeyboardMapping (& (event->xmapping)); break; } -- 2.25.1