dot/.local/share/gnome-shell/extensions/wsmatrix@martin.zurowietz.de/DisplayWrapper.js

22 lines
448 B
JavaScript

const Meta = imports.gi.Meta;
var DisplayWrapper = {
getScreen: function() {
return global.screen || global.display;
},
getWorkspaceManager: function() {
return global.screen || global.workspace_manager;
},
getMonitorManager: function() {
return global.screen || Meta.MonitorManager.get();
},
getDisplayCorner: function() {
return Meta.ScreenCorner || Meta.DisplayCorner;
},
};