Space.selectedIndex util method

This commit is contained in:
Ole Jørgen Brønner
2017-09-27 23:02:56 +02:00
parent 0c9034255d
commit f1d9fdca6e
+7
View File
@@ -54,6 +54,13 @@ Space = (workspace) => {
let space = [];
space.workspace = workspace;
space.selectedWindow = null;
space.selectedIndex = () => {
if (space.selectedWindow) {
return space.indexOf(space.selectedWindow);
} else {
return -1;
}
}
space.moving = false;
space.leftStack = 0;
space.rightStack = 0;