mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -761,17 +761,19 @@ class Panel extends St.Widget {
|
|||
if (targetActor !== this)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
const [x, y_] = event.get_coords();
|
||||
const [x, y] = event.get_coords();
|
||||
let dragWindow = this._getDraggableWindowForPosition(x);
|
||||
|
||||
if (!dragWindow)
|
||||
return Clutter.EVENT_PROPAGATE;
|
||||
|
||||
const positionHint = new Graphene.Point({x, y});
|
||||
return dragWindow.begin_grab_op(
|
||||
Meta.GrabOp.MOVING,
|
||||
event.get_device(),
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue