Works great! Many thanks for your help Brandon! 

On 18 June 2015 at 15:14, Brandon Allbery <allbery.b@gmail.com> wrote:
Assuming you're not overriding logHook (or are doing it properly which sadly many do not), you can just import XMonad.Hooks.EWMHDesktops and apply the ewmh combinator to your config record.

If you're using the bad configuration that too many people point to as a "default" (the big one that overrides literally everything with defaults from a particular version) then there may not be any easy way to do it. That config was never a good idea, for all its popularity; it's a leftover from pre-0.5's hardcoded config.


On Thu, Jun 18, 2015 at 9:08 AM, Juliusz Gonera <juliusz.gonera@gmail.com> wrote:
Is there a working config snippet that just makes this problem go away? 

On 18 June 2015 at 14:58, Brandon Allbery <allbery.b@gmail.com> wrote:
On Thu, Jun 18, 2015 at 1:59 AM, Juliusz Gonera <juliusz.gonera@gmail.com> wrote:
After i switch workspace in xmonad with e.g. Alt+3 my google-chrome window in workspace 3 has no focus.

Focus problems from recent Chrome seem to be related to not having EWMHDesktops enabled or configured properly. It's no longer optional; if you are using Chrome/Chromium you MUST use EWMHDesktops or it won't work right.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net




--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net