mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-24 04:45:08 +02:00
signals: for Chromium, move the mouse below the tabs
Otherwise, we just get annoying tooltips displaying on top of the omnibox.
This commit is contained in:
parent
4c041dd201
commit
237fb09b7a
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,12 @@ local icons = loadrc("icons", "vbe/icons")
|
|||
local focus_from_mouse = false
|
||||
local function mouse_follow_focus(c)
|
||||
-- Move the mouse to the top left corner
|
||||
local margin = 10
|
||||
local margin = function()
|
||||
if c.class == "Chromium" then return 30
|
||||
else return 10
|
||||
end
|
||||
end
|
||||
margin = margin()
|
||||
if c.type ~= "dialog" then
|
||||
local cc = c:geometry()
|
||||
local _, x, y = awful.mouse.client.corner(nil, "top_left")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue