Fixed inconsistency between doc and impl on OS X for the grab feature

Patch for #1133 and #1148.
This commit is contained in:
Marco Antognini 2016-09-16 09:24:39 +02:00 committed by Lukas Dürrenberger
parent 9996b7abb6
commit 550fb2b60a
2 changed files with 2 additions and 3 deletions

View File

@ -230,7 +230,7 @@
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
-(BOOL)isCursorCurrentlyGrabbed -(BOOL)isCursorCurrentlyGrabbed
{ {
return [[self window] isKeyWindow] && (m_cursorGrabbed || m_fullscreen); return [[self window] isKeyWindow] && m_cursorGrabbed;
} }

View File

@ -70,8 +70,7 @@
/// \brief Check whether the cursor is grabbed or not /// \brief Check whether the cursor is grabbed or not
/// ///
/// The cursor is grabbed if the window is active (key) and /// The cursor is grabbed if the window is active (key) and
/// either it is in fullscreen mode or the user wants to /// the user wants to grab it.
/// grab it.
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
-(BOOL)isCursorCurrentlyGrabbed; -(BOOL)isCursorCurrentlyGrabbed;