Commit 5f90fb1f authored by Emmanuel Puig's avatar Emmanuel Puig

* Fixed GTK2 events

parent 1377f497
......@@ -2,7 +2,7 @@
* gtk2_run.cpp:
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: gtk2_run.cpp,v 1.7 2003/04/15 20:33:58 karibu Exp $
* $Id: gtk2_run.cpp,v 1.8 2003/04/15 20:42:04 karibu Exp $
*
* Authors: Cyril Deguet <asmax@videolan.org>
*
......@@ -72,18 +72,28 @@ void GTK2Proc( GdkEvent *event, gpointer data )
unsigned int msg;
VlcProc *proc = (VlcProc *)data;
intf_thread_t *p_intf = proc->GetpIntf();
Event *evt;
list<Window *>::const_iterator win;
GdkWindow *gwnd = ((GdkEventAny *)event)->window;
// Create event to dispatch in windows
// Skin event
if( event->type == GDK_CLIENT_EVENT )
{
msg = ( (GdkEventClient *)event )->data.l[0];
evt = (Event *)new OSEvent( p_intf,
((GdkEventAny *)event)->window,
msg,
( (GdkEventClient *)event )->data.l[1],
( (GdkEventClient *)event )->data.l[2] );
}
// System event
else
{
msg = event->type;
// Create event to dispatch in windows
Event *evt = (Event *)new OSEvent( p_intf, ((GdkEventAny *)event)->window,
msg, 0, (long)event );
evt = (Event *)new OSEvent( p_intf,
((GdkEventAny *)event)->window, msg, 0, (long)event );
}
if( IsVLCEvent( msg ) )
{
......
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