Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kbdd switches layouts incorrectly #23

Open
ghost opened this issue Jan 2, 2013 · 7 comments
Open

kbdd switches layouts incorrectly #23

ghost opened this issue Jan 2, 2013 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 2, 2013

kbdd does not swich layouts when switching windows actively.

kbdd: 0.6.4
os: Linux z 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
layouts: by(latin), by(legacy)
window manager: xfce4.8 (xfce-kbd-plugin is not installed)

  1. run kbdd
  2. open two windows
  3. set the active layout for the window 1 to by(latin)
  4. set the active layout for the window 2 to by(legacy)
  5. press the same button repeatedly (i use 's')
  6. switch between windows while doing 5.

actual output:
window1: ssssssssssssssssssssssssssssssss
window2: ыыыыsыыыыыыыыыsыыыыsыыыыsыыыыsыыыы

expected output:
window1: contains only 's'
window2: contains only 'ы'

in addition, sometimes kbdd does not switch the layout at all so (in my case) the window 2 contains:
ыыыыsыыыыыыыыыsыыыыsыыыыsыыыыsыыыыыыыыыsssssssss

after that the layout could be switched back to by(legacy) again by kbdd which results to:
ыыыыsыыыыыыыыыsыыыыsыыыыsыыыыsыыыыыыыыыsssssssssssssssssssssыыыыыыыыы

@ghost ghost closed this as completed Jun 18, 2013
@ghost ghost reopened this Jun 18, 2013
@qnikst
Copy link
Owner

qnikst commented Jul 17, 2013

sorry for a delay but is it reproducible on the current master?

@ghost
Copy link
Author

ghost commented Jul 17, 2013

I've just tried to make the master codebase but the configuration step does not work for me. Am I supposed to install/change something to execute ./configure ?

dzmitry@z:/projects$ git clone https://github.com/qnikst/kbdd
Cloning into 'kbdd'...
remote: Counting objects: 1259, done.
remote: Compressing objects: 100% (501/501), done.
remote: Total 1259 (delta 812), reused 1180 (delta 751)
Receiving objects: 100% (1259/1259), 346.46 KiB | 56 KiB/s, done.
Resolving deltas: 100% (812/812), done.
dzmitry@z:
/projects$ cd kbdd/
dzmitry@z:~/projects/kbdd$ ./configure
bash: ./configure: No such file or directory

Then I tried to create ./configure out of ./configure.ac. However, it does not seem to work fine:

dzmitry@z:/projects/kbdd$ autoconf -o configure configure.ac
dzmitry@z:
/projects/kbdd$ chmod +x ./configure
dzmitry@z:~/projects/kbdd$ ./configure
./configure: line 2173: syntax error near unexpected token kbdd,' ./configure: line 2173:AM_INIT_AUTOMAKE(kbdd, 0.6)'

@qnikst
Copy link
Owner

qnikst commented Jul 17, 2013

afaik, you need to run autoreconf -i before configure

@ghost
Copy link
Author

ghost commented Jul 17, 2013

Thanks, this helps.
The master version of kbdd seems to work now. Let me use it for a while to ensure that random switches are not a problem.

@ghost
Copy link
Author

ghost commented Jul 17, 2013

It works better but not perfectly.
The use case:

  • open two mousepad instances, each with different layout
  • switch between them quickly and type text in parallel
  • you will see something like this:
    window 1: ывфыыфвdфыфыasфыфыв
    window 2: sfаdsыdfffasdasdasasdasdsdasddasasasddasdadddasфы

There you can see some cyrillic characters in the latin sequence as well as some latin characters in the cyrillic sequence

@ghost
Copy link
Author

ghost commented Jul 17, 2013

in addition, after exercising with fast window switching I can reproduce a case when kbdd changes the layout for a window for ever :)

So yes - the bug is still reproducible with the master build of kbdd. The syntetic steps in the bug description lead to the same output with the newest kbdd.

@amerlyq
Copy link

amerlyq commented Apr 25, 2016

Regretfully, problem is persistent.
When using i3wm it was intermitten and easily resigned, but on xmonad it occurs permanently and unbearable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants