Gobble "spurious" EnterNotify events when moving an appIcon or a dock
commitd7183d33b4bb408f58509786015355628377ba7d
authorDaniel Déchelotte <yo.dan@free.fr>
Tue, 1 Sep 2009 07:22:37 +0000 (1 09:22 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 1 Sep 2009 12:12:55 +0000 (1 14:12 +0200)
tree937a3acd734d60369de96dc843fb2a82cdd663bd
parent2ed9c12ee5baf092451b2979c0add711e216d04f
Gobble "spurious" EnterNotify events when moving an appIcon or a dock

This is a bug fix. Bug overview: if an AppIcon is moved rapidly over a Clip
    set to auto-expand, the latter may erroneously auto-expand afterwards.

    How to reproduce it: set a Clip to auto-collapse, and make sure it contains a
    (random) AppIcon, so as to easily visualise its open/close state. Now move
    rapidly an AppIcon over the Clip. Try to move it so fast that the cursor
    sometimes is out of the AppIcon's tile. Then, replace the AppIcon out of the
    Clip.

    Explanation and correction: if, while the AppIcon was being moved, the mouse
    cursor entered at least once in the Clip's tile, the latter is going to
    receive an EnterNotify event (after the AppIcon is replaced) and thus expand
    automatically after the relevant delay. The solution is to simply "gobble"
    (i.e., ignore) all EnterNotify events when moving an AppIcon.
src/appicon.c
src/dock.c