mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
event: titlebar are parts of client
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
991c795629
commit
9f34d20f08
2 changed files with 2 additions and 3 deletions
3
event.c
3
event.c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue