tests: Stop using global grabs
Global grabs are being removed from Clutter in favour of input device grabs. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/495
This commit is contained in:
parent
d5a1a888d9
commit
02c76695e5
@ -215,14 +215,12 @@ class SizingIllustrator extends St.Widget {
|
|||||||
let [x, y] = event.get_coords();
|
let [x, y] = event.get_coords();
|
||||||
this._dragX = x - handleX;
|
this._dragX = x - handleX;
|
||||||
this._dragY = y - handleY;
|
this._dragY = y - handleY;
|
||||||
Clutter.grab_pointer(handle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_handleReleased(handle, event) {
|
_handleReleased(handle, event) {
|
||||||
if (event.get_button() == 1) {
|
if (event.get_button() == 1) {
|
||||||
this._inDrag = false;
|
this._inDrag = false;
|
||||||
Clutter.ungrab_pointer(handle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user