X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcontainer.cpp;h=9c3d403bf74b8864af6cfea0b0a4a0f2e036c520;hb=7f3a6b11585376eecd80979ec3da2346c5314d88;hp=2eca9f4573473c0c772a4efd96060836e6bc15ec;hpb=c85958d34fac175452fe420ff24ea82f26d6f1f3;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???