changeset 221:e901bdec7578

Free mouse from GUI if no widget is dragged.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Thu, 19 Mar 2009 19:04:07 +0000
parents 6d09d310943b
children c050f257cec3
files engine/core/gui/guimanager.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/engine/core/gui/guimanager.cpp	Thu Mar 19 18:23:00 2009 +0000
+++ b/engine/core/gui/guimanager.cpp	Thu Mar 19 19:04:07 2009 +0000
@@ -109,6 +109,9 @@
 					return true;
 				}
 				if( m_had_mouse ) {
+					// We only keep the mouse if a widget/window has requested
+					// dragging.
+					m_had_mouse = bool(m_focushandler->getDraggedWidget());
 					input->pushInput(evt);
 					return true;
 				}