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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2928>
This commit is contained in:
parent
80237b1082
commit
fa4d4af4c6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user