mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
broadway: Fix input events
This commit is contained in:
parent
97c0d112af
commit
cfdb3952c6
@ -582,10 +582,14 @@ function handleMessage(message)
|
||||
}
|
||||
|
||||
function getSurfaceId(ev) {
|
||||
var surface = ev.target.surface;
|
||||
if (surface != undefined)
|
||||
return surface.id;
|
||||
return 0;
|
||||
var target = ev.target;
|
||||
while (target.surface == undefined) {
|
||||
if (target == document)
|
||||
return 0;
|
||||
target = target.parentNode;
|
||||
}
|
||||
|
||||
return target.surface.id;
|
||||
}
|
||||
|
||||
function sendInput(cmd, args)
|
||||
|
Loading…
Reference in New Issue
Block a user