Commit 64b64281 authored by Cyril Deguet's avatar Cyril Deguet

* src/generic_window.cpp: don't raise the windows on a mouse up event

parent 73a2f963
......@@ -2,7 +2,7 @@
* generic_window.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: generic_window.cpp,v 1.1 2004/01/03 23:31:33 asmax Exp $
* $Id: generic_window.cpp,v 1.2 2004/01/25 21:38:57 asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
......@@ -147,18 +147,17 @@ void GenericWindow::processEvent( EvtLeave &rEvtLeave )
void GenericWindow::processEvent( EvtMouse &rEvtMouse )
{
// Raise the window and its anchored windows
m_rWindowManager.raise( this );
// Get the control hit by the mouse
CtrlGeneric *pNewHitControl = findHitControl( rEvtMouse.getXPos(),
rEvtMouse.getYPos() );
setLastHit( pNewHitControl );
// Change the focused control
if( rEvtMouse.getAction() == EvtMouse::kDown )
{
// Raise all the windows
m_rWindowManager.raise( this );
if( pNewHitControl && pNewHitControl->isFocusable() )
{
// If a new control gains the focus, the previous one loses it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment