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:
@ -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);
|
||||
|
Reference in New Issue
Block a user