Re: xkb - separate layout for each window
Peter Hutterer wrote: On Tue, Nov 10, 2009 at 01:19:09PM +0100, Lukas Hejtmanek wrote: is there a way how to setup separate layout of keyboard for each window? Similar thing does gnome or some other desktops environments but I would like to setup this using setxkbmap or xorg.conf/hal. Is there a way? no. the xkb map is actually kept in the client, in order to do what you propose you'd have to send mapping notify events with each enter/leave event and let the client refresh the keymap if necessary. Possible, but then you need to define what a window is. While above is correct, there is an application, that serves your original needs. It is called xxkb. It is poorly maintained, but included in many distros. It has bug, or rather incompatibility with recent xlib. This incompatibility prevents it from placing icons specifying current language on windows. Otherwise it works perfectly. It identifies the scope of what should be count as window by associated resourses. http://sourceforge.net/projects/xxkb/ There may be alternatives. For instance, in modern gnome installations there is an option to support requested behaviour. -- Regards, Andrei Zaparii ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
xkb - separate layout for each window
Hello, is there a way how to setup separate layout of keyboard for each window? Similar thing does gnome or some other desktops environments but I would like to setup this using setxkbmap or xorg.conf/hal. Is there a way? -- Lukáš Hejtmánek ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: xkb - separate layout for each window
On Tue, Nov 10, 2009 at 01:19:09PM +0100, Lukas Hejtmanek wrote: is there a way how to setup separate layout of keyboard for each window? Similar thing does gnome or some other desktops environments but I would like to setup this using setxkbmap or xorg.conf/hal. Is there a way? no. the xkb map is actually kept in the client, in order to do what you propose you'd have to send mapping notify events with each enter/leave event and let the client refresh the keymap if necessary. Possible, but then you need to define what a window is. the definition of a window in the X protocol is merely a rectangular area on the screen clients can draw to (disclaimer: details missing). that applies to virtually every visible item on the screen, though with recent efforts those sometimes get consolidated into a single window. in short, what a window is on the client is fairly unpredictable and since windows appear and disappear all the time, a commandline interface for such a task would be entertaining but mostly useless. the definition of window you refer to is mostly implemented in the window manager and doesn't apply here. you really need the WM/DE to do this kind of stuff. Cheers, Peter ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg