From 722f0cf933ef9aa71ba5bcb3bafcaeafb903805f Mon Sep 17 00:00:00 2001 From: Brian Lovin Date: Tue, 2 Apr 2013 15:13:49 -0700 Subject: [PATCH] test_button: fix bugs from last commit with framespace Signed-off-by: Brian Lovin --- src/efl/test_button.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/efl/test_button.cpp b/src/efl/test_button.cpp index d04f5af..ab021e4 100644 --- a/src/efl/test_button.cpp +++ b/src/efl/test_button.cpp @@ -60,7 +60,7 @@ public: boost::bind( &ElmTestHarness::setGlobalPointerPosition, boost::ref(*this), (geo.x + button_.getX() + button_.getWidth() / 2), - (geo.y + button_.getY() + button_.getHeight() / 2 + geoFS.height) + (geo.y + button_.getY() + button_.getHeight() / 2 + geoFS.y) ) ); @@ -189,10 +189,13 @@ public: window_.show(); Application::yield(0.01*1e6); + for (unsigned i(0); i < 20; ++i) + queueStep(boost::bind(&Application::yield, 0.001*1e6)); Geometry geo = getSurfaceGeometry(elm_win_wl_window_get(window_)->surface); Geometry geoFS = window_.getFramespaceGeometry(); - geo.y += geoFS.height; //Add framespace height to y value to 'move down' mouse cursor by framespace size + geo.y += geoFS.y; + geo.x += geoFS.x; //upper left addInOutEventsTest( -- 2.7.4