panel: Pass position hint when starting window drag
Since mutter@4b1e24fcc, starting a drag op requires an additional argument, pass it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3214>
This commit is contained in:
parent
d09509b2cb
commit
be0800ea17
@ -761,17 +761,19 @@ class Panel extends St.Widget {
|
|||||||
if (targetActor !== this)
|
if (targetActor !== this)
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
|
||||||
const [x, y_] = event.get_coords();
|
const [x, y] = event.get_coords();
|
||||||
let dragWindow = this._getDraggableWindowForPosition(x);
|
let dragWindow = this._getDraggableWindowForPosition(x);
|
||||||
|
|
||||||
if (!dragWindow)
|
if (!dragWindow)
|
||||||
return Clutter.EVENT_PROPAGATE;
|
return Clutter.EVENT_PROPAGATE;
|
||||||
|
|
||||||
|
const positionHint = new Graphene.Point({x, y});
|
||||||
return dragWindow.begin_grab_op(
|
return dragWindow.begin_grab_op(
|
||||||
Meta.GrabOp.MOVING,
|
Meta.GrabOp.MOVING,
|
||||||
event.get_device(),
|
event.get_device(),
|
||||||
event.get_event_sequence(),
|
event.get_event_sequence(),
|
||||||
event.get_time()) ? Clutter.EVENT_STOP : Clutter.EVENT_PROPAGATE;
|
event.get_time(),
|
||||||
|
positionHint) ? Clutter.EVENT_STOP : Clutter.EVENT_PROPAGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onButtonPress(actor, event) {
|
_onButtonPress(actor, event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user