M. Rawash | 19 Mar 2010 13:33
Picon

disabling mouse focus

hi, is there a simple way to disable 'mousefocus' on certain clients
(a on-screen keyboard, for example)?

Tuomo Valkonen | 22 Mar 2010 14:12
Picon
Picon
Favicon

Re: disabling mouse focus

On 2010-03-19 14:33 +0200, M. Rawash wrote:
> hi, is there a simple way to disable 'mousefocus' on certain clients
> (a on-screen keyboard, for example)?

There's the 'passive' winprop. There should be examples in the
list archives, maybe even something in the scripts repository.

--

-- 
Tuomo

M. Rawash | 23 Mar 2010 00:36
Picon

Re: disabling mouse focus

On 22/03/2010, Tuomo Valkonen <tuomov@...> wrote:
> On 2010-03-19 14:33 +0200, M. Rawash wrote:
>> hi, is there a simple way to disable 'mousefocus' on certain clients
>> (a on-screen keyboard, for example)?
>
> There's the 'passive' winprop. There should be examples in the
> list archives, maybe even something in the scripts repository.
>
> --
> Tuomo
>

thanks, i thought there must be a more obvious way, but this is what i did:

defwinprop{
  class = "Something",
  float = true,
  userpos = true,
  switchto = false,
  no_focus = true,
}

nmfcwins = {}

function no_mfocus(cwin,t)
  local winprop = ioncore.getwinprop(cwin)
  if winprop and winprop.no_focus then
    nmfcwins[cwin:xid()] = cwin:xid()
    ioncore.set{mousefocus="disabled"}
  end
(Continue reading)


Gmane