Browse Source

firefox fix

David Rose 16 years ago
parent
commit
4b5eed144f
2 changed files with 6 additions and 2 deletions
  1. 2 0
      direct/src/plugin/p3dInstance.cxx
  2. 4 2
      direct/src/plugin/p3dOsxSplashWindow.cxx

+ 2 - 0
direct/src/plugin/p3dInstance.cxx

@@ -103,6 +103,8 @@ P3DInstance(P3D_request_ready_func *func,
   _shared_mmap_size = 0;
   _swbuffer = NULL;
   _reversed_buffer = NULL;
+  // We have to start with _mouse_active true; firefox doesn't send
+  // activate events.
   _mouse_active = true;
   _frame_timer = NULL;
 #endif  // __APPLE__

+ 4 - 2
direct/src/plugin/p3dOsxSplashWindow.cxx

@@ -29,7 +29,9 @@ P3DOsxSplashWindow(P3DInstance *inst) :
 {
   _install_progress = 0;
   _got_wparams = false;
-  _mouse_active = false;
+  // We have to start with _mouse_active true; firefox doesn't send
+  // activate events.
+  _mouse_active = true;
   _toplevel_window = NULL;
 }
 
@@ -183,7 +185,7 @@ handle_event(P3D_event_data event) {
   if (port_changed) {
     QDSwapPort(port_save, NULL);
   }
-
+  
   switch (er->what) {
   case updateEvt:
     paint_window();