[gnome] Update extensions for v46

This commit is contained in:
2024-04-03 12:59:14 -04:00
parent 3fb1ec63ae
commit 7421cdba8f
251 changed files with 15759 additions and 3153 deletions

View File

@ -0,0 +1,40 @@
'use strict';
/**
* @type {{_display(): Meta_Display, number_of_displays(): int}}
*/
var DisplayApi = {
/**
* Returns the Wayland display or screen
*
* @returns {Meta.Display}
*/
_display() {
return global.display || global.screen;
},
/**
* @returns {int}
* @public
*/
number_displays() {
return this._display().get_n_monitors();
},
/**
* @param {number} displayIndex the monitor number
* @returns {Meta.Rectangle}
*/
display_geometry_for_index(displayIndex) {
return this._display().get_monitor_geometry(displayIndex);
},
/**
* @param {Meta.Cursor} cursor the new cursor to set
*/
set_cursor(cursor) {
this._display().set_cursor(cursor);
},
};
export {DisplayApi};