From 4b5eed144fba9d330502f84af015462c254e10c2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 10 Sep 2009 01:02:04 +0000 Subject: [PATCH] firefox fix --- direct/src/plugin/p3dInstance.cxx | 2 ++ direct/src/plugin/p3dOsxSplashWindow.cxx | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/direct/src/plugin/p3dInstance.cxx b/direct/src/plugin/p3dInstance.cxx index 45a0d713a8..8f340b62e1 100644 --- a/direct/src/plugin/p3dInstance.cxx +++ b/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__ diff --git a/direct/src/plugin/p3dOsxSplashWindow.cxx b/direct/src/plugin/p3dOsxSplashWindow.cxx index 67ad220b94..130e6c9f60 100644 --- a/direct/src/plugin/p3dOsxSplashWindow.cxx +++ b/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();