padOsd: Fix rings and strips event handling

JS ERROR: TypeError: event.get_pad_event_details is not a function
    vfunc_captured_event@resource:///org/gnome/shell/ui/padOsd.js:824:53
    @resource:///org/gnome/shell/ui/init.js:21:20

These were renamed in mutter@97213041e8e7

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7210

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3029>
This commit is contained in:
Peter Hutterer 2023-11-24 13:16:12 +10:00 committed by Marge Bot
parent ad5cffbce4
commit e367a2713b

View File

@ -812,13 +812,13 @@ export const PadOsd = GObject.registerClass({
} else if (event.get_source_device() === this.padDevice &&
event.type() === Clutter.EventType.PAD_STRIP) {
if (this._editionMode) {
let [retval_, number, mode] = event.get_pad_event_details();
let [retval_, number, mode] = event.get_pad_details();
this._startStripActionEdition(number, Meta.PadDirection.UP, mode);
}
} else if (event.get_source_device() === this.padDevice &&
event.type() === Clutter.EventType.PAD_RING) {
if (this._editionMode) {
let [retval_, number, mode] = event.get_pad_event_details();
let [retval_, number, mode] = event.get_pad_details();
this._startRingActionEdition(number, Meta.PadDirection.CCW, mode);
}
}