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

Method addFloating

tiling.js:1036–1044  ·  view source on GitHub ↗
(metaWindow)

Source from the content-addressed store, hash-verified

1034 }
1035
1036 addFloating(metaWindow) {
1037 if (this._floating.indexOf(metaWindow) !== -1 ||
1038 metaWindow.is_on_all_workspaces())
1039 return false;
1040 this._floating.push(metaWindow);
1041 let clone = metaWindow.clone;
1042 Utils.actor_reparent(clone, this.actor);
1043 return true;
1044 }
1045
1046 removeFloating(metaWindow) {
1047 let i = this._floating.indexOf(metaWindow);

Callers 2

switchMonitorMethod · 0.80
insertWindowFunction · 0.80

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected