]> git.pld-linux.org Git - packages/wine.git/blob - wine-dga.patch
- fixed build with current alsa-lib; updated TODO (working on it)
[packages/wine.git] / wine-dga.patch
1 --- wine-20030508/dlls/x11drv/event.c.orig      Tue Jul  8 00:03:21 2003
2 +++ wine-20030508/dlls/x11drv/event.c   Tue Jul  8 00:04:10 2003
3 @@ -131,25 +131,38 @@
4   */
5  static int process_events( struct x11drv_thread_data *data )
6  {
7 -    XEvent event;
8 -    int count = 0;
9 +XEvent event;
10 +int count = 0;
11 +
12 +wine_tsx11_lock();
13 +
14 +if( DGAUsed ) {
15 +
16 +while ( XPending( gdi_display ) )
17 +{
18 +XNextEvent( gdi_display, &event );
19 +wine_tsx11_unlock();
20 +EVENT_ProcessEvent( &event );
21 +count++;
22 +wine_tsx11_lock();
23 +}
24 +
25 +} else {
26 +
27 +while ( XPending( data->display ) )
28 +{
29 +XNextEvent( data->display, &event );
30 +wine_tsx11_unlock();
31 +EVENT_ProcessEvent( &event );
32 +count++;
33 +wine_tsx11_lock();
34 +}
35  
36 -    wine_tsx11_lock();
37 -    while ( XPending( data->display ) )
38 -    {
39 -        Bool ignore;
40 -
41 -        XNextEvent( data->display, &event );
42 -        ignore = XFilterEvent( &event, None );
43 -        wine_tsx11_unlock();
44 -        if (!ignore) EVENT_ProcessEvent( &event );
45 -        count++;
46 -        wine_tsx11_lock();
47 -    }
48 -    wine_tsx11_unlock();
49 -    return count;
50  }
51  
52 +wine_tsx11_unlock();
53 +return count;
54 +} 
55  
56  /***********************************************************************
57   *           MsgWaitForMultipleObjectsEx   (X11DRV.@)
This page took 0.065392 seconds and 3 git commands to generate.