MCPcopy Index your code
hub / github.com/paperwm/PaperWM / isFullyVisible

Method isFullyVisible

tiling.js:843–850  ·  view source on GitHub ↗
(metaWindow)

Source from the content-addressed store, hash-verified

841 }
842
843 isFullyVisible(metaWindow) {
844 let clone = metaWindow.clone;
845 let x = this.visibleX(metaWindow);
846 let workArea = this.workArea();
847 let min = workArea.x;
848
849 return min <= x && x + clone.width < min + workArea.width;
850 }
851
852 visibleRatio(metaWindow) {
853 let clone = metaWindow.clone;

Callers 2

initWorkspacesFunction · 0.80
findNonVisibleIndexFunction · 0.80

Calls 2

visibleXMethod · 0.95
workAreaMethod · 0.95

Tested by

no test coverage detected