diogogmt

unlock mouse

Nov 20th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. 4513 if (!mFullScreen && mDocument) {
  2. 4514 printf("\nfullscreen false\n");
  3. 4515 // Notify the document that we've left full-screen mode. This is so that
  4. 4516 // if we're in full-screen mode and the user exits full-screen mode with
  5. 4517 // the browser full-screen mode toggle keyboard-shortcut, we detect that
  6. 4518 // and leave DOM API full-screen mode too.
  7. 4519 mDocument->MozCancelFullScreen();
  8. 4520
  9. 4521 printf("\nUnlocking the mouse\n");
  10. 4522 nsCOMPtr<nsIDOMNavigator> gNavigator;
  11. 4523 GetNavigator(getter_AddRefs(gNavigator));
  12. 4524 NS_ENSURE_ARG_POINTER(gNavigator);
  13. 4525
  14. 4526 nsCOMPtr<nsIDOMMouseLockable> gPointer;
  15. 4527 gNavigator->GetPointer(getter_AddRefs(gPointer));
  16. 4528 NS_ENSURE_ARG_POINTER(gPointer);
  17. 4529 if (gPointer) {
  18. 4530 printf("\npointer exists, now unlocking the mouse\n");
  19. 4531 gPointer->Unlock();
  20. 4532 }
  21. 4533 }
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment