js: Update Meta.KeyHandlerFunc arguments

The Meta keybinding API now exposes the Clutter event to GJS, which was
previously hidden due to it being a gpointer. Since this moves the
binding argument one argument to the right on the GJS side, any code
that was using the binding argument needs to be updated.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3502>
This commit is contained in:
Guacamolie
2024-10-13 15:52:44 +02:00
committed by Marge Bot
parent 8694f891ad
commit 91a9409b1d
3 changed files with 7 additions and 7 deletions

View File

@ -1422,7 +1422,7 @@ export const ScreenshotUI = GObject.registerClass({
new Gio.Settings({schema_id: 'org.gnome.shell.keybindings'}),
Meta.KeyBindingFlags.IGNORE_AUTOREPEAT | Meta.KeyBindingFlags.PER_WINDOW,
restrictedModes,
async (_display, window, _binding) => {
async (_display, window, _event, _binding) => {
try {
const actor = window.get_compositor_private();
const content = actor.paint_to_content(null);