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

22 lines
448 B
JavaScript
Raw Normal View History

2020-05-11 09:16:27 +00:00
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;
},
};