From a1b552439d158be234645d07a2547b14f84eb27c Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 22 May 2016 04:46:07 +0800 Subject: [PATCH] small fixes --- source/gui/detail/bedrock_posix.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/gui/detail/bedrock_posix.cpp b/source/gui/detail/bedrock_posix.cpp index af6a58c3..1ac30c25 100644 --- a/source/gui/detail/bedrock_posix.cpp +++ b/source/gui/detail/bedrock_posix.cpp @@ -515,7 +515,7 @@ namespace detail if(msgwnd) { if (mouse_action::pressed != msgwnd->flags.action) - msgwnd->set_action(mouse_action::over); + msgwnd->set_action(mouse_action::hovered); hovered_wd = msgwnd; @@ -669,7 +669,7 @@ namespace detail { if((arg.button == ::nana::mouse::left_button) && hit) { - msgwnd->set_action(mouse_action::over); + msgwnd->set_action(mouse_action::hovered); click_arg.window_handle = reinterpret_cast(msgwnd); draw_invoker(&drawer::click, msgwnd, click_arg, &context); @@ -680,7 +680,7 @@ namespace detail if(wd_manager.available(msgwnd) && msgwnd->flags.enabled) { if(hit) - msgwnd->set_action(mouse_action::over); + msgwnd->set_action(mouse_action::hovered); auto retain = msgwnd->together.events_ptr; auto evt_ptr = retain.get(); @@ -766,7 +766,7 @@ namespace detail { evt_code = event_code::mouse_enter; if (mouse_action::pressed != msgwnd->flags.action) - msgwnd->set_action(mouse_action::over); + msgwnd->set_action(mouse_action::hovered); } arg_mouse arg; assign_arg(arg, msgwnd, message, xevent); @@ -781,7 +781,7 @@ namespace detail assign_arg(arg, msgwnd, message, xevent); if (mouse_action::pressed != msgwnd->flags.action) - msgwnd->set_action(mouse_action::over); + msgwnd->set_action(mouse_action::hovered); if (hovered_wd != msgwnd) {