X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.cpp;h=9c3d403bf74b8864af6cfea0b0a4a0f2e036c520;hb=da1348151182fe5340495ff8243e662b96c1fbfa;hp=2eca9f4573473c0c772a4efd96060836e6bc15ec;hpb=8a5bf49d09b5a00ebea3ffc449519ad05b0326cc;p=architektonas diff --git a/src/container.cpp b/src/container.cpp index 2eca9f4..9c3d403 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -204,7 +204,7 @@ class so that we can leverage that stuff here as well. /*virtual*/ bool Container::PointerMoved(Vector point) { std::vector::iterator i; - lastObjectHovered = NULL; + lastObjectHovered = penultimateObjectHovered = NULL; if (!isTopLevelContainer) { @@ -261,7 +261,10 @@ class so that we can leverage that stuff here as well. { // if (objects[i]->GetState() == OSSelected) if ((*i)->PointerMoved(point)) + { + penultimateObjectHovered = lastObjectHovered; lastObjectHovered = *i; + } } // Generic container doesn't need this???