MCPcopy Create free account
hub / github.com/emasab/shelltile / apply

Function apply

tiling.js:916–925  ·  view source on GitHub ↗
(preview_rect)

Source from the content-addressed store, hash-verified

914 var preview_rect = this.get_edge_preview(win, accel);
915
916 var apply = function (preview_rect){
917 if (preview_rect.maximize) win.maximize();
918 else {
919 if (win.group){
920 win.group.detach(win);
921 }
922 win.unmaximize();
923 win.move_resize(preview_rect.x, preview_rect.y, preview_rect.width, preview_rect.height);
924 }
925 }
926
927 if (preview_rect){
928

Callers 1

DefaultTilingStrategyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected