File diff r14365:ecbc00cb8995 → r14366:4312f3d8c856
src/window.cpp
Show inline comments
 
@@ -1510,12 +1510,15 @@ static bool _dragging_window; ///< A win
 

	
 
static bool HandleWindowDragging()
 
{
 
	/* Get out immediately if no window is being dragged at all. */
 
	if (!_dragging_window) return true;
 

	
 
	/* If button still down, but cursor hasn't moved, there is nothing to do. */
 
	if (_left_button_down && _cursor.delta.x == 0 && _cursor.delta.y == 0) return false;
 

	
 
	/* Otherwise find the window... */
 
	Window *w;
 
	FOR_ALL_WINDOWS_FROM_BACK(w) {
 
		if (w->flags4 & WF_DRAGGING) {
 
			/* Stop the dragging if the left mouse button was released */
 
			if (!_left_button_down) {