From 5f90fb1feb0cb5364b0746fcd4ff57df9528970a Mon Sep 17 00:00:00 2001 From: Emmanuel Puig Date: Tue, 15 Apr 2003 20:42:04 +0000 Subject: [PATCH] * Fixed GTK2 events --- modules/gui/skins/gtk2/gtk2_run.cpp | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/gui/skins/gtk2/gtk2_run.cpp b/modules/gui/skins/gtk2/gtk2_run.cpp index 1eae4889ff..bc812af251 100644 --- a/modules/gui/skins/gtk2/gtk2_run.cpp +++ b/modules/gui/skins/gtk2/gtk2_run.cpp @@ -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 * @@ -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::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 ) ) { -- GitLab