To be IsModifierKey() defined properly in X11/Xutil.h, XK_XKB_KEYS has to be defined previously. This is done in X11/keysym.h. But this file is not resourced and compiler gets incorrectly defined macro IsModifierKey(), unless it explicitly includes X11/keysym.h before X11/Xutil.h. This causes bad definition of IsModifierKey() in Emacs. Fix: Add #include <X11/keysym.h> to X11/Xutil.h It causes for example bad function of AltGr in Emacs.
Matthias, Egbert, see http://bugzilla.suse.de/show_bug.cgi?id=47192 for more details.
See also https://bugzilla.redhat.com/137868 https://bugzilla.redhat.com/144601
Looking at the Redhat bugs fixes has gone into Emacs and not to Xorg. Which implicates an error in Emacs and not xorg.
On my opinion the "fix" of Emacs (change of include order) is a only a work-around. The bug is in in X headers (undocumented change of behavior depending on order of includes).
fixed in git
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.