Hi everyone,,
Right now, I've this small snipped in my rc.lua that makes the mouse
focus to the center of newly opened window.
client.connect_signal("focus", function(c)
if mouse.object_under_pointer() ~= c then
local geometry = c:geometry()
local x = geometry.x + geometry.width/2
local y = geometry.y + geometry.height/2
mouse.coords({x = x, y = y}, true)
end
end)
The problem with this is that, it also focuses to a window if it's in
a separate "screen". I only want it to happen for current screen. How
do I make this possible?
I tried to add "c:isvisible()" as one more condition but for some
reason it isn't working. I'm dealing with "IceadTea" java windows so
support for it is already messy. Could that be the reason?
--
Cheers,
Abhijeet Rastogi (shadyabhi)
--
To unsubscribe, send mail to [email protected].