You are not logged in.

#1 2009-08-24 15:15:18

Kruppe
Member
Registered: 2008-09-28
Posts: 30

Xmonad and focus follows mouse issue

I've been fiddling around with xmonad, and I notice that with focus follows mouse turned on, when I create a new window the window under the mouse gets selected instead of the window that I have just created. Pretty irritating, Anyone know how to solve that?

Thanks for any help provided,

Kruppe

Offline

#2 2009-08-24 15:35:36

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Xmonad and focus follows mouse issue

by default, xmonad will focus a window if you drag your pointer over it; therefore, i don't explicitly turn focus follows mouse on in my xmonad.hs (i do use updatePointer though, which is awesome)...

anyway, i don't have this issue doing it this way, so maybe you should try removing any focus follows mouse stuff from your xmonad.hs and seeing if that helps?

if not, post it here so we can have a look.

Offline

#3 2009-08-24 18:25:10

Kruppe
Member
Registered: 2008-09-28
Posts: 30

Re: Xmonad and focus follows mouse issue

Yes, disabling the focus follows mouse behaviour makes it so the correct window is always chosen.

I kind of like having focus follows mouse for when I need to copy and paste in applications that don't provide good methods for doing that purely with the keyboard (firefox and most terminals when not using screen). I would therefore like to have focus follows mouse.

Sidenote: What is this updatePointer thing you use and what does it do?

Offline

#4 2009-08-24 18:44:23

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Offline

#5 2009-08-24 19:13:19

Kruppe
Member
Registered: 2008-09-28
Posts: 30

Re: Xmonad and focus follows mouse issue

I see, that sounds like it actually might fix the problem I'm having. Is that what it is supposed to be used for?

Offline

#6 2009-08-24 20:20:32

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: Xmonad and focus follows mouse issue

personally, i use updatePointer with 0.95 0.95 which moves my pointer to the lower right corner of the active window; i really only do this to keep it out of my way when moving about my windows (plus it looks really slick in action).  if it does fix your problem though, i'm happy for you.

Offline

Board footer

Powered by FluxBB