Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Aug 2004 03:47:22 -0400
From:      epilogue <epilogue@allstream.net>
To:        freebsd-questions@freebsd.org, freebsd-x11@freebsd.org
Cc:        anholt@freebsd.org
Subject:   Re: wm dropping keypresses since moving to xorg (strange) -- SOLVED
Message-ID:  <20040803034722.04a71589@localhost>
In-Reply-To: <20040802201708.74b83337@localhost>
References:  <20040802154253.3c58d101@localhost> <20040802201708.74b83337@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2 Aug 2004 20:17:08 -0400
epilogue <epilogue@allstream.net> wrote:

> 
> thanks to some very kind help from dejan, and after a little stress
> testing on my end, i believe that it is safe to declare this problem
> solved.
> 
> ----------
> the fix:
> ----------
> 
> /usr/X11R6/lib/X11/xkb/symbols/pc/pc
> 
> <snip>
>   //  Fake keys for virtual<->real modifiers mapping 
>     key <LVL3> {        [ ISO_Level3_Shift      ]       };
>     key <MDSW> {        [ Mode_switch           ]       };
>     modifier_map Mod5   { <LVL3>, <MDSW> };
> 
>     key <ALT>  {        [ NoSymbol, Alt_L       ]       };
>     modifier_map Mod1   { <ALT>, <LALT> };
> <snip>
> 
> add <RALT> to:
>     modifier_map Mod1   { <ALT>, <LALT>, <RALT> };

since the first adjustment, i eventually noted a slight change in the way
the windows key was functioning (dropping certain keypresses). to restore
the expected behaviour, i simply added <LWIN> and <RWIN> to another line in
the same section of file mentioned above:

    key <SUPR> {        [ NoSymbol, Super_L     ]       };
//  modifier_map Mod4   { <SUPR> };
    modifier_map Mod4   { <SUPR>, <LWIN>, <RWIN> };

as there is only 1 windows key on my keyboard, i am not certain whether
both WIN values were strictly necessary, but all seems now to be working.


> save file and restart x.
> 
> 
> hello anholt,
> copying you in case you want to feed this back up the pipe to xorg. 
> dejan also located this old link, which you might find of interest:
> 
> http://bugs.xfree86.org/show_bug.cgi?id=580
> 
> 
> cheers,
> epi
> 
> --------------
> On Mon, 2 Aug 2004 15:42:53 -0400
> epilogue <epilogue@allstream.net> wrote:
> 
> > 
> > hello all,
> > 
> > well, i was beginning to think that i was either hallucinating or
> > suffering from some sort of bizarre nerve damage...   but i seem to
> > have made some progress in analysing this problem.
> > 
> > i have attached a (sorted and commented) file with output from xev. 
> > the problem always affects only the right-alt key, despite the various
> > xkbmodels i select (or leave blank).
> > 
> > i also came across two other reports of the same behaviour:
> > 
> > http://lists.debian.org/debian-devel/2004/06/msg01410.html
> > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=261816
> > 
> > as you can see, they're from deb.  they seem to have isolated the
> > problem to a symbols/pc file within x11, not fluxbox.  a patch is
> > provided, but it does not apply cleanly to the version of xorg that i
> > have installed.
> > 
> > i would very much appreciate any suggestions.
> > 
> > 
> > thank you,
> > epi
> > 
> > ---------------
> > Begin forwarded message:
> > 
> > Date: Tue, 27 Jul 2004 00:33:30 -0400
> > From: epilogue <epilogue@allstream.net>
> > To: freebsd-questions@freebsd.org, freebsd-x11@freebsd.org
> > Subject: wm dropping keypresses since moving to xorg (strange)
> > 
> > 
> > hello x11, questions,
> > 
> > i have some reservations about sending this in, because it sounds a bit
> > weird, but i've jumped through all the usual self-serve hoops and i'm
> > about at my wits end.
> > 
> > since switching to xorg, when i alt+tab to a window with my wm of
> > choice(fluxbox-devel), the 1st keypress is always dropped in the new
> > window, regardless of whether that window is a *term, mail client,
> > browser, ...
> > 
> > say i alt+tab to an xterm.  for 'man' to appear on the command line, i
> > must type 'mman' or 'ccd' for 'cd'.
> > 
> > the window only drops that 1st key.  if i alt+tab away and come back,
> > it will again drop only the 1st key.
> > 
> > 
> > here is what i know:
> > 
> > 1) it doesn't happen if i use the mouse.
> > 2) this problem was not apparent when i tested for it with icewm or
> > xfce4. 3) fluxbox used to play very nicely with xfree.
> > 
> > 
> > here is what i've tried:
> > 
> > 1) google, fbsd and xorg mailing lists.
> > 2) contacted the fluxbox developers over irc.  several are running xorg
> > and fluxbox on linux without the problems i'm seeing.    (?!)
> > 3) rebuilt xorg then fluxbox-devel.  removed .fluxbox to ensure that
> > the default settings would load.
> > 4) played with xorg.conf (used old xfree.conf, built a new xorg.conf,
> > and changed various settings withing xorg.conf)
> > 5) attempted to pinpoint the issue via xev, but failed miserably.
> > 
> > 
> > it smells like some sort of 'focus' problem to me.  any suggestions
> > would be very much appreciated.
> > 
> > hoping that i'm not alone here.
> > 
> > 
> > thanks,
> > epi
> > 
> > 
> > p.s. a little additional info for any of you who know a bit about
> > fluxbox settings.  the problem seems only to occur with those
> > keybindings(like alt+tab) which are mapped to 'NextWindow' or
> > 'NextWindow 1' but_not_ with 'NextTab'.  naturally, the same holds true
> > for the shift+foo combos which translate to 'Previous____'.
> > _______________________________________________
> > freebsd-x11@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
> > 
> > _______________________________________________
> > freebsd-x11@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"
> > 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040803034722.04a71589>