mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-16 05:04:21 +02:00
signals: mouse follows focus even on different screen
This commit is contained in:
parent
881d41cdb8
commit
c37020e544
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ client.add_signal("focus", function(c)
|
|||
|
||||
-- Move the mouse to the top left corner
|
||||
local margin = 10
|
||||
if c.screen == mouse.screen and not focus_from_mouse then
|
||||
if not focus_from_mouse then
|
||||
local cc = c:geometry()
|
||||
local _, x, y = awful.mouse.client.corner(nil, "top_left")
|
||||
if x and y and cc.width > margin * 2 and cc.height > margin * 2 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue