Comment 9 for bug 537115

exactly!

This patch is to resolve this issue, if mouse leave icon, but still in
inside dock, and sub-dock didn't pop up, it shrinks. This patch works for
sub-dock case.
With this patch, I can completely replace gnome-panel with cairo-dock.

This patch hasn't been tested against dock that is vertical.

On Tue, Mar 16, 2010 at 4:50 PM, Fabounet <email address hidden> wrote:

> oh I see !
> I thought this was a gnome-panel, but this is the dock with a x1 zoom and
> small icons, right ? ^_^
> ok so the labels are actually part of the dock, so even when you are out of
> the icon from few pixels, you are still inside the dock. Ths is because when
> you have sub-docks, they must touch the main dock (otherwise you would leave
> the dock before entering the sub-dock). And since the label shouldn't
> overlap the sub-dock, automatically we have :
> ______________
> . dock
> ---------------------
> . label
> ---------------------
> sub-dock or nothing
>
> --
> Click at the position where icon label was, the icon and dock still receive
> the event
> https://bugs.launchpad.net/bugs/537115
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Cairo-Dock : Core: New
> Status in “cairo-dock” package in Ubuntu: New
>
> Bug description:
> define a new dock as panel (like gnome panel) at top of screen, and enable
> plugins such as alsaMixer, clock, powermanager
>
> configure the panel (dock) as "prevent apps overlap dock", open a
> application window (gVim for example) and make it maximized.
>
> Move mouse onto clock applet, a clock label shows on top of the gVim window
> title bar; move mouse down to the gVim "close" button, click, then calendar
> window shows up.
>
> Root Cause:
> When mouse moves onto a icon, the label appears, and the dock
> height grows. But when mouse left icon, label disapeared, but dock didn't
> shrink, and think it still has focus.
>
> Resolution:
> Send "leave" event to dock when mouse left icon
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/cairo-dock-core/+bug/537115/+subscribe
>