Commit be0b6cf0 authored by Emmanuel Puig's avatar Emmanuel Puig

* GTK2 events work even better

parent 5f90fb1f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_api.cpp: Various gtk2-specific functions * gtk2_api.cpp: Various gtk2-specific functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_api.cpp,v 1.7 2003/04/15 20:33:58 karibu Exp $ * $Id: gtk2_api.cpp,v 1.8 2003/04/15 20:54:58 karibu Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -121,11 +121,7 @@ void OSAPI_GetScreenSize( int &w, int &h ) ...@@ -121,11 +121,7 @@ void OSAPI_GetScreenSize( int &w, int &h )
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
void OSAPI_GetMousePos( int &x, int &y ) void OSAPI_GetMousePos( int &x, int &y )
{ {
/* LPPOINT MousePos = new POINT; gdk_window_get_pointer( gdk_get_default_root_window(), &x, &y, NULL );
GetCursorPos( MousePos );
x = MousePos->x;
y = MousePos->y;
delete MousePos;*/
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
string OSAPI_GetWindowTitle( Window *win ) string OSAPI_GetWindowTitle( Window *win )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* gtk2_event.cpp: GTK2 implementation of the Event class * gtk2_event.cpp: GTK2 implementation of the Event class
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: gtk2_event.cpp,v 1.6 2003/04/15 20:33:58 karibu Exp $ * $Id: gtk2_event.cpp,v 1.7 2003/04/15 20:54:58 karibu Exp $
* *
* Authors: Cyril Deguet <asmax@videolan.org> * Authors: Cyril Deguet <asmax@videolan.org>
* *
...@@ -80,12 +80,14 @@ bool GTK2Event::SendEvent() ...@@ -80,12 +80,14 @@ bool GTK2Event::SendEvent()
{ {
OSAPI_PostMessage( *win, Message, Param1, Param2 ); OSAPI_PostMessage( *win, Message, Param1, Param2 );
PostSynchroMessage(); PostSynchroMessage();
return true;
} }
} }
}
OSAPI_PostMessage( NULL, Message, Param1, Param2 ); OSAPI_PostMessage( NULL, Message, Param1, Param2 );
return true; return true;
}
return false;
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
bool GTK2Event::IsEqual( Event *evt ) bool GTK2Event::IsEqual( Event *evt )
......
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