[gtk+/broadway: 230/246] broadway: Fix time in ungrab



commit e53abee8054da90c887e0f265de7048321277a1e
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Mar 14 12:02:18 2011 +0100

    broadway: Fix time in ungrab

 gdk/broadway/broadway.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index acdace7..8acfe9c 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -457,16 +457,16 @@ function doGrab(id, owner_events, time, implicit) {
     grab.implicit = implicit;
 }
 
-function doUngrab() {
+function doUngrab(time) {
     var pos;
     if (real_window_with_mouse != window_with_mouse) {
 	if (window_with_mouse != 0) {
 	    pos = getPositionsFromAbsCoord(last_x, last_y, window_with_mouse);
-	    send_input ("l", [window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, ev.timeStamp, GDK_CROSSING_UNGRAB]);
+	    send_input ("l", [window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, time, GDK_CROSSING_UNGRAB]);
 	}
 	if (real_window_with_mouse != 0) {
 	    pos = getPositionsFromAbsCoord(last_x, last_y, id);
-	    send_input ("e", [real_window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, ev.timeStamp, GDK_CROSSING_UNGRAB]);
+	    send_input ("e", [real_window_with_mouse, pos.root_x, pos.root_y, pos.win_x, pos.win_y, time, GDK_CROSSING_UNGRAB]);
 	}
 	window_with_mouse = real_window_with_mouse;
     }
@@ -489,7 +489,7 @@ function on_mouse_up (ev) {
     send_input ("B", [id, pos.root_x, pos.root_y, pos.win_x, pos.win_y, ev.timeStamp, ev.button]);
 
     if (grab.window != null && grab.implicit)
-	doUngrab();
+	doUngrab(time);
 }
 
 var last_key_down = 0;



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