forked from AuroraMiddleware/gtk
[broadway] Remove unused grab.time on browser side
This commit is contained in:
parent
f53771cc1d
commit
06ad0f52e2
@ -79,7 +79,6 @@ function createXHR()
|
|||||||
var grab = new Object();
|
var grab = new Object();
|
||||||
grab.window = null;
|
grab.window = null;
|
||||||
grab.ownerEvents = false;
|
grab.ownerEvents = false;
|
||||||
grab.time = 0;
|
|
||||||
grab.implicit = false;
|
grab.implicit = false;
|
||||||
var lastSerial = 0;
|
var lastSerial = 0;
|
||||||
var lastX = 0;
|
var lastX = 0;
|
||||||
@ -265,7 +264,7 @@ function cmdFlushSurface(id)
|
|||||||
|
|
||||||
function cmdGrabPointer(id, ownerEvents)
|
function cmdGrabPointer(id, ownerEvents)
|
||||||
{
|
{
|
||||||
doGrab(id, ownerEvents, time, false);
|
doGrab(id, ownerEvents, false);
|
||||||
sendInput ("g", []);
|
sendInput ("g", []);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -555,7 +554,7 @@ function onMouseOut (ev) {
|
|||||||
windowWithMouse = 0;
|
windowWithMouse = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function doGrab(id, ownerEvents, time, implicit) {
|
function doGrab(id, ownerEvents, implicit) {
|
||||||
var pos;
|
var pos;
|
||||||
|
|
||||||
if (windowWithMouse != id) {
|
if (windowWithMouse != id) {
|
||||||
@ -570,11 +569,10 @@ function doGrab(id, ownerEvents, time, implicit) {
|
|||||||
|
|
||||||
grab.window = id;
|
grab.window = id;
|
||||||
grab.ownerEvents = ownerEvents;
|
grab.ownerEvents = ownerEvents;
|
||||||
grab.time = time;
|
|
||||||
grab.implicit = implicit;
|
grab.implicit = implicit;
|
||||||
}
|
}
|
||||||
|
|
||||||
function doUngrab(time) {
|
function doUngrab() {
|
||||||
var pos;
|
var pos;
|
||||||
if (realWindowWithMouse != windowWithMouse) {
|
if (realWindowWithMouse != windowWithMouse) {
|
||||||
if (windowWithMouse != 0) {
|
if (windowWithMouse != 0) {
|
||||||
@ -596,7 +594,7 @@ function onMouseDown (ev) {
|
|||||||
id = getEffectiveEventTarget (id);
|
id = getEffectiveEventTarget (id);
|
||||||
var pos = getPositionsFromEvent(ev, id);
|
var pos = getPositionsFromEvent(ev, id);
|
||||||
if (grab.window != null)
|
if (grab.window != null)
|
||||||
doGrab (id, false, ev.timeStamp, true);
|
doGrab (id, false, true);
|
||||||
var button = ev.button + 1;
|
var button = ev.button + 1;
|
||||||
lastState = lastState | getButtonMask (button);
|
lastState = lastState | getButtonMask (button);
|
||||||
sendInput ("b", [realWindowWithMouse, id, pos.rootX, pos.rootY, pos.winX, pos.winY, lastState, button]);
|
sendInput ("b", [realWindowWithMouse, id, pos.rootX, pos.rootY, pos.winX, pos.winY, lastState, button]);
|
||||||
|
Loading…
Reference in New Issue
Block a user