Page 1 of 1

How to control focus in window manager JWM?

Posted: Sun 25 Nov 2012, 13:04
by xan
When an application spawns a child window and I close it, the keyboard focus does not return to the application but goes to a different window underneath.

This typically happens when I open a preferences dialog and close it. Some applications that have this problem are Umplayer and Geany.

Posted: Sun 25 Nov 2012, 14:46
by Semme
Xan- you describe click.. there's sloppy too. Have you toyed with the focus model in JWM config?

Posted: Mon 26 Nov 2012, 07:05
by xan
Thank you, but I want to use click. I want the top (child) window to retain focus unless I intend to move elsewhere. Sloppy is the worst thing.

For example, in Geany if I use find or open the preferences window and then close or cancel it, the focus doesn't return to the Geany main window. If I use keyboard command to minimise then main Geany window gets active again. It was like there is some other invisible window still active in between.

This also happens with Smplayer and Umplayer.

Posted: Mon 26 Nov 2012, 07:18
by puppyluvr
:D Hello,
Look @
.jwmrc
which is a "hidden" XML file in /root.....

Posted: Mon 26 Nov 2012, 07:39
by xan
Thank you but I don't know what you want me to look at there. I have already chosen click model, but it is not working as it should be for all applications.

I also found:
<Group>
<Class>gtkdialog-splash</Class>
<Option>nolist</Option>
<!-- <Option>layer:9</Option> -->
<Option>nofocus</Option>
</Group>

Is that what I should be changing?