From fa4d4af4c6b1de4de7f381bd76dbdcf06afc4d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 30 Aug 2023 17:25:30 +0200 Subject: [PATCH] screenshot: Export captureScreenshot() function It is needed by the corresponding item in the window menu. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6967 Part-of: --- js/ui/screenshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index b13be7b6b..d3c28a26b 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2246,7 +2246,7 @@ function _storeScreenshot(bytes, pixbuf) { * @param {number} cursor.y - The cursor y coordinate. * @param {number} cursor.scale - The cursor texture scale. */ -async function captureScreenshot(texture, geometry, scale, cursor) { +export async function captureScreenshot(texture, geometry, scale, cursor) { const stream = Gio.MemoryOutputStream.new_resizable(); const [x, y, w, h] = geometry ?? [0, 0, -1, -1]; if (cursor === null)