TrilbyWhite / alopex

A tabbed tiling window manager, with fur.
36 stars 4 forks source link

Keyboard Input Fails for programs running in WINE #22

Closed HalosGhost closed 11 years ago

HalosGhost commented 11 years ago

When running a program or game in WINE, this error pops up in journalctl:

Apr 14 09:08:03 Prometheus ttwm[13870]: [TTWM] (12:3) BadWindow (invalid Window parameter)

This is the case for every WINE program I have tried. But, for example, netflix-desktop, limbo-hib, and teamviewer all have this issue. Though that error is thrown, the program loads fine; the actual problem is that I cannot type in any of these programs (which makes controlling games, for instance, rather difficult). There is a workaround, though very roundabout.

As the keyboard input is passed to the last focused ("valid" ?) window, if you can force the input to create a pop-up—for instance, I often use a chat website which will only post text if it has more than two characters, trying to post with only one character typed pops up an alert window telling you this—while viewing the WINE program (even though the input is being passed to the other window), then close the pop-up, input will now be magically focused to the WINE program. This is a very poor workaround because it requires another program to be open and must be done everytime you wish to return focus to the WINE program.

I know some of this description is convoluted, but I'm not quite sure how to better describe it. Any thoughts?

TrilbyWhite commented 11 years ago

I think I've got a solution - it's been pushed, but needs testing.

HalosGhost commented 11 years ago

Confirmed fixed as of 9552d8e. Trilby, you are wonderful!