[gtk+/broadway: 234/246] broadway: Report right coordinates on ungrab enter



commit 9214796a4d80019e64a56bfc5a10cd4ac8f6d848
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Mar 14 15:46:29 2011 +0100

    broadway: Report right coordinates on ungrab enter

 gdk/broadway/broadway.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 7835428..affb687 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -499,7 +499,7 @@ function doUngrab(time) {
 	    send_input ("l", [window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, last_state, time, GDK_CROSSING_UNGRAB]);
 	}
 	if (real_window_with_mouse != 0) {
-	    pos = getPositionsFromAbsCoord(last_x, last_y, id);
+	    pos = getPositionsFromAbsCoord(last_x, last_y, real_window_with_mouse);
 	    send_input ("e", [real_window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, last_state, time, GDK_CROSSING_UNGRAB]);
 	}
 	window_with_mouse = real_window_with_mouse;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]