@@ -115,7 +115,7 @@ void Desktop::Add( std::shared_ptr<Widget> widget ) {
115115 RecalculateWidgetLevels ();
116116
117117 if ( widget->GetAllocation ().contains ( static_cast <float >( m_last_mouse_pos.x ), static_cast <float >( m_last_mouse_pos.y ) ) ) {
118- SendFakeMouseMoveEvent ( widget, static_cast < float >( m_last_mouse_pos.x ), static_cast < float >( m_last_mouse_pos.y ) );
118+ SendFakeMouseMoveEvent ( widget, m_last_mouse_pos.x , m_last_mouse_pos.y );
119119 }
120120
121121 // Activate context.
@@ -141,7 +141,7 @@ void Desktop::Remove( std::shared_ptr<Widget> widget ) {
141141 RecalculateWidgetLevels ();
142142
143143 if ( !m_children.empty () && m_children.front ()->GetAllocation ().contains ( static_cast <float >( m_last_mouse_pos.x ), static_cast <float >( m_last_mouse_pos.y ) ) ) {
144- SendFakeMouseMoveEvent ( m_children.front (), static_cast < float >( m_last_mouse_pos.x ), static_cast < float >( m_last_mouse_pos.y ) );
144+ SendFakeMouseMoveEvent ( m_children.front (), m_last_mouse_pos.x , m_last_mouse_pos.y );
145145 }
146146}
147147
@@ -199,7 +199,7 @@ void Desktop::BringToFront( std::shared_ptr<const Widget> child ) {
199199 RecalculateWidgetLevels ();
200200
201201 if ( child->GetAllocation ().contains ( static_cast <float >( m_last_mouse_pos.x ), static_cast <float >( m_last_mouse_pos.y ) ) ) {
202- SendFakeMouseMoveEvent ( ptr, static_cast < float >( m_last_mouse_pos.x ), static_cast < float >( m_last_mouse_pos.y ) );
202+ SendFakeMouseMoveEvent ( ptr, m_last_mouse_pos.x , m_last_mouse_pos.y );
203203 }
204204}
205205
0 commit comments