Commit b9d0fb94 authored by Cyril Deguet's avatar Cyril Deguet

* x11/x11_window.cpp: raise a window when clicking on it

parent b66504f5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* x11_window.cpp: X11 implementation of the Window class * x11_window.cpp: X11 implementation of the Window class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: x11_window.cpp,v 1.26 2003/06/22 12:54:03 asmax Exp $ * $Id: x11_window.cpp,v 1.27 2003/06/22 13:06:23 asmax Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -276,11 +276,19 @@ bool X11Window::ProcessOSEvent( Event *evt ) ...@@ -276,11 +276,19 @@ bool X11Window::ProcessOSEvent( Event *evt )
for( list<SkinWindow *>::const_iterator win = for( list<SkinWindow *>::const_iterator win =
p_intf->p_sys->p_theme->WindowList.begin(); p_intf->p_sys->p_theme->WindowList.begin();
win != p_intf->p_sys->p_theme->WindowList.end(); win++ ) win != p_intf->p_sys->p_theme->WindowList.end(); win++ )
{
Window id = ( (X11Window *)(*win) )->GetHandle();
// the current window is raised last
if( id != Wnd )
{ {
XLOCK; XLOCK;
XRaiseWindow( display, ( (X11Window *)(*win) )->GetHandle() ); XRaiseWindow( display, id );
XUNLOCK; XUNLOCK;
} }
}
XLOCK;
XRaiseWindow( display, Wnd );
XUNLOCK;
button = 0; button = 0;
if( ((XButtonEvent *)p2 )->state & ControlMask ) if( ((XButtonEvent *)p2 )->state & ControlMask )
......
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