event: titlebar are parts of client
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
991c795629
commit
9f34d20f08
3
event.c
3
event.c
|
@ -513,7 +513,8 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
|
||||||
if(wibox->mouse_enter != LUA_REFNIL)
|
if(wibox->mouse_enter != LUA_REFNIL)
|
||||||
luaA_dofunction(globalconf.L, wibox->mouse_enter, 0, 0);
|
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)))
|
|| (c = client_getbywin(ev->event)))
|
||||||
{
|
{
|
||||||
if(globalconf.hooks.mouse_enter != LUA_REFNIL)
|
if(globalconf.hooks.mouse_enter != LUA_REFNIL)
|
||||||
|
|
|
@ -69,7 +69,6 @@ function add(c, args)
|
||||||
capi.button({ args.modkey }, 3, function (t) mouse.client.resize(t.client) end)
|
capi.button({ args.modkey }, 3, function (t) mouse.client.resize(t.client) end)
|
||||||
}
|
}
|
||||||
title:buttons(bts)
|
title:buttons(bts)
|
||||||
function title.mouse_enter(s) hooks.user.call('mouse_enter', c) end
|
|
||||||
|
|
||||||
local appicon = capi.widget({ type = "imagebox", align = "left" })
|
local appicon = capi.widget({ type = "imagebox", align = "left" })
|
||||||
appicon.image = c.icon
|
appicon.image = c.icon
|
||||||
|
@ -172,7 +171,6 @@ local function button_new(c, name, modkey, theme, state)
|
||||||
end
|
end
|
||||||
|
|
||||||
button:buttons(bts)
|
button:buttons(bts)
|
||||||
function button.mouse_enter(s) hooks.user.call('mouse_enter', c) end
|
|
||||||
button.visible = false
|
button.visible = false
|
||||||
return button
|
return button
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue