event: titlebar are parts of client

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-12 14:29:53 +02:00
parent 991c795629
commit 9f34d20f08
2 changed files with 2 additions and 3 deletions

View File

@ -513,7 +513,8 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
if(wibox->mouse_enter != LUA_REFNIL)
luaA_dofunction(globalconf.L, wibox->mouse_enter, 0, 0);
}
else if((c = client_getbytitlebarwin(ev->event))
if((c = client_getbytitlebarwin(ev->event))
|| (c = client_getbywin(ev->event)))
{
if(globalconf.hooks.mouse_enter != LUA_REFNIL)

View File

@ -69,7 +69,6 @@ function add(c, args)
capi.button({ args.modkey }, 3, function (t) mouse.client.resize(t.client) end)
}
title:buttons(bts)
function title.mouse_enter(s) hooks.user.call('mouse_enter', c) end
local appicon = capi.widget({ type = "imagebox", align = "left" })
appicon.image = c.icon
@ -172,7 +171,6 @@ local function button_new(c, name, modkey, theme, state)
end
button:buttons(bts)
function button.mouse_enter(s) hooks.user.call('mouse_enter', c) end
button.visible = false
return button
end