From 237fb09b7a59f75dadd9f9db5516edb2c1484430 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 29 Jun 2013 12:50:17 +0200 Subject: [PATCH] signals: for Chromium, move the mouse below the tabs Otherwise, we just get annoying tooltips displaying on top of the omnibox. --- rc/signals.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rc/signals.lua b/rc/signals.lua index b7dae51..6076d4f 100644 --- a/rc/signals.lua +++ b/rc/signals.lua @@ -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")