diff src/event-Xt.c @ 5558:10455659ab64

Backed out changeset 53c066311921, I have a better approach.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 28 Aug 2011 10:22:24 +0100
parents 53c066311921
children f3ab0c29c246
line wrap: on
line diff
--- a/src/event-Xt.c	Sat Aug 27 20:35:23 2011 +0100
+++ b/src/event-Xt.c	Sun Aug 28 10:22:24 2011 +0100
@@ -66,10 +66,6 @@
 #include "xmotif.h"
 #endif
 
-#ifdef HAVE_X11_XF86KEYSYM_H
-#include <X11/XF86keysym.h>
-#endif
-
 #ifdef HAVE_DRAGNDROP
 #include "dragdrop.h"
 #endif
@@ -1234,21 +1230,6 @@
 		int Mode_switch_p = *state & xd->ModeMask;
 		KeySym bot = XLookupKeysym (ev, Mode_switch_p ? 2 : 0);
 		KeySym top = XLookupKeysym (ev, Mode_switch_p ? 3 : 1);
-
-#ifdef HAVE_X11_XF86KEYSYM_H
-                /* XLookupKeysm() and XLookupString() differ for these
-                   keysyms under X.org. The latter treats them as not
-                   visible to X11 apps (so if the event has the shift
-                   modifer, the keysym of the unshifted key will be
-                   returned) while the former treats them as visible. We
-                   chose to follow XLookupString in x_to_emacs_keysym(), so
-                   we need to do that here, too. */
-
-                if (XF86XK_Switch_VT_1 <= top && top <= XF86XK_Prev_VMode)
-                  {
-                    top = NoSymbol; 
-                  }
-#endif
 		if (top && bot && top != bot)
 		  modifiers &= ~XEMACS_MOD_SHIFT;
 	      }