From 9f34d20f08dcb12daadc3cdbe02cf0fe1a0e30a2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 12 Apr 2009 14:29:53 +0200 Subject: [PATCH] event: titlebar are parts of client Signed-off-by: Julien Danjou --- event.c | 3 ++- lib/awful/titlebar.lua.in | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/event.c b/event.c index e5ebb68b..f58b82a8 100644 --- a/event.c +++ b/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) diff --git a/lib/awful/titlebar.lua.in b/lib/awful/titlebar.lua.in index 4296cf76..57855b1d 100644 --- a/lib/awful/titlebar.lua.in +++ b/lib/awful/titlebar.lua.in @@ -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