MCPcopy Create free account
hub / github.com/GNOME/gnome-shell / _getMonitorIndexForEvent

Method _getMonitorIndexForEvent

js/ui/workspacesView.js:1062–1066  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

1060 }
1061
1062 _getMonitorIndexForEvent(event) {
1063 const [x, y] = event.get_coords();
1064 const rect = new Mtk.Rectangle({x, y, width: 1, height: 1});
1065 return global.display.get_monitor_index_for_rect(rect);
1066 }
1067
1068 _getPrimaryView() {
1069 if (!this._workspacesViews.length)

Callers 1

_onScrollEventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected