rlopez1j / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

focus switching problems with xxkb #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
'ExplicitCall' on #haskell reports that:

   just start the xxkb in xmonad, change the xxkb
   group, switch to other window and the group is preserved. 
   that isn't a supposed behaviour and that doesn't happen 
   on several other WMs I used (wmii and fwvm)

Possibly an EWMH issue?

Original issue reported on code.google.com by don...@gmail.com on 7 Apr 2008 at 6:20

GoogleCodeExporter commented 9 years ago
Just wanted to report that same problem, but you were first :)

I did a little investigation and as far as I can see, xxkb relies on the wm 
calling
XReparentWindow when a window is created. But XMonad doesn't call this function 
(twm
does and most other wms, I suppose, too). So the question is: is this an 
xmonad's
failure or a failure of xxkb to rely on a non-standard wm behavior?

Original comment by sgsoftw...@gmail.com on 8 Apr 2008 at 2:08

GoogleCodeExporter commented 9 years ago
xmonad is a non-reparenting window manager by design.  I would expect xxkb to 
fail with other non-
reparenting window managers such as ratpoison and dwm as well.

Original comment by allber...@gmail.com on 8 Apr 2008 at 2:19

GoogleCodeExporter commented 9 years ago
Yes indeed, you are right. xxkb doesn't work properly in dwm and ratpoison.

Original comment by sgsoftw...@gmail.com on 8 Apr 2008 at 5:13

GoogleCodeExporter commented 9 years ago
Closing this, as its an application issue.

Do we have a definitive document somewhere that states that applications 
relying on 
reparenting are in violation of the spec?

Original comment by don...@gmail.com on 8 Apr 2008 at 5:46

GoogleCodeExporter commented 9 years ago
http://tronche.com/gui/x/icccm/sec-4.html#s-4.2.1
(I'm not sure I want to trust that as a stable, or official, link; but x.org's 
seems to be PDF)
The key is that it says *some* window managers reparent and *if* windows are 
reparented.

Original comment by allber...@gmail.com on 8 Apr 2008 at 6:18

GoogleCodeExporter commented 9 years ago
Thanks as always, allbery.b. 

The spec sez: the app is wrong.

Original comment by don...@gmail.com on 8 Apr 2008 at 6:27

GoogleCodeExporter commented 9 years ago
I'm not sure what you mean by 'switching troubles', but my xxkb is working good 
in
xmonad.

Example steps:
1. Run xxkb.
2. Spawn two terminal windows.
3. Switch to russian keyboard layout in first terminal window.
4. Move to another terminal window. Set keyboard layout to 'us'.
5. Back to first window - layout is preserved for this window (still 'ru').
6. Move to second window - layout is preserved for this window (still 'us').

That's exactly that behaviour I'm expecting from xxkb.

Original comment by vese...@gmail.com on 10 Apr 2008 at 6:33