directvnc-0.7.8-mouse.patch 1.0 KB

123456789101112131415161718192021222324252627282930
  1. diff --git a/src/dfb.c b/src/dfb.c
  2. index 5335ea2..8f3adbc 100644
  3. --- a/src/dfb.c
  4. +++ b/src/dfb.c
  5. @@ -28,7 +28,6 @@ IDirectFB *dfb = NULL;
  6. IDirectFBSurface *primary = NULL;
  7. IDirectFBDisplayLayer *layer = NULL;
  8. IDirectFBInputDevice *keyboard = NULL;
  9. -IDirectFBInputDevice *mouse = NULL;
  10. IDirectFBEventBuffer *input_buffer = NULL;
  11. DFBResult err;
  12. DFBSurfaceDescription dsc;
  13. @@ -70,7 +69,6 @@ dfb_init(int argc, char *argv[])
  14. primary->GetSize (primary, &opt.client.width, &opt.client.height);
  15. DFBCHECK(dfb->GetInputDevice( dfb, DIDID_KEYBOARD, &keyboard ));
  16. - DFBCHECK(dfb->GetInputDevice( dfb, DIDID_MOUSE, &mouse ));
  17. DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE, &input_buffer));
  18. }
  19. @@ -87,8 +85,6 @@ dfb_deinit()
  20. input_buffer->Release( input_buffer );
  21. if ( keyboard )
  22. keyboard->Release( keyboard );
  23. - if ( mouse )
  24. - mouse->Release( mouse );
  25. if ( layer )
  26. layer->Release( layer );
  27. if ( dfb )