When passing drag on to it's bw, we don't need to do anything if the drag is for the current bw.

svn path=/trunk/netsurf/; revision=12666
This commit is contained in:
Michael Drake 2011-08-24 21:53:58 +00:00
parent ecff5eaf83
commit 65398660e5
1 changed files with 1 additions and 1 deletions

View File

@ -1866,7 +1866,7 @@ void browser_window_mouse_track(struct browser_window *bw,
if (bw->window != NULL) { if (bw->window != NULL) {
/* root browser window */ /* root browser window */
if (bw->drag_window) { if (bw->drag_window && bw != bw->drag_window) {
/* There's an active drag in a sub window. /* There's an active drag in a sub window.
* Pass the mouse action straight on to that bw. */ * Pass the mouse action straight on to that bw. */
int off_x = 0; int off_x = 0;