Enable mouse motion events when the launcher is enabled

git-svn-id: http://tint2.googlecode.com/svn/trunk@635 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
o9000 2011-06-08 16:54:36 +00:00 committed by mrovi@interfete-web-club.com
parent a5270e39d1
commit fb042d4230

View file

@ -199,7 +199,7 @@ void init_panel()
p->main_win = XCreateWindow(server.dsp, server.root_win, p->posx, p->posy, p->area.width, p->area.height, 0, server.depth, InputOutput, server.visual, mask, &att); p->main_win = XCreateWindow(server.dsp, server.root_win, p->posx, p->posy, p->area.width, p->area.height, 0, server.depth, InputOutput, server.visual, mask, &att);
long event_mask = ExposureMask|ButtonPressMask|ButtonReleaseMask|ButtonMotionMask; long event_mask = ExposureMask|ButtonPressMask|ButtonReleaseMask|ButtonMotionMask;
if (p->g_task.tooltip_enabled || p->clock.area._get_tooltip_text) if (p->g_task.tooltip_enabled || p->clock.area._get_tooltip_text || p->launcher.area.on_screen)
event_mask |= PointerMotionMask|LeaveWindowMask; event_mask |= PointerMotionMask|LeaveWindowMask;
if (panel_autohide) if (panel_autohide)
event_mask |= LeaveWindowMask|EnterWindowMask; event_mask |= LeaveWindowMask|EnterWindowMask;