made WindowManager a static class
This commit is contained in:
@@ -41,10 +41,10 @@ class HomeContext {
|
||||
|
||||
public function run() {
|
||||
// Create main terminal context
|
||||
var stateless = WindowManager.instance.createNewStatelessContext();
|
||||
var stateless = WindowManager.createNewStatelessContext();
|
||||
ctx = stateless.ctx;
|
||||
requestRender = stateless.requestRender;
|
||||
WindowManager.instance.focusContextToOutput(ctx, "main");
|
||||
WindowManager.focusContextToOutput(ctx, "main");
|
||||
|
||||
renderer = new RootElement();
|
||||
renderer.setTitle("Home");
|
||||
@@ -85,14 +85,14 @@ class HomeContext {
|
||||
|
||||
private function focusContext(id:Int) {
|
||||
if (workspaces.exists(id)) {
|
||||
WindowManager.instance.focusContextToOutput(workspaces[id], selectedOutput);
|
||||
WindowManager.focusContextToOutput(workspaces[id], selectedOutput);
|
||||
currentWorkspace = id;
|
||||
}
|
||||
}
|
||||
|
||||
private function focusMainTerm() {
|
||||
requestRender();
|
||||
WindowManager.instance.focusContextToOutput(ctx, "main");
|
||||
WindowManager.focusContextToOutput(ctx, "main");
|
||||
currentWorkspace = -1;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class HomeContext {
|
||||
var pid = ProcessManager.run(ps, {});
|
||||
var lastContextID = -1;
|
||||
|
||||
for ( ctx in WindowManager.instance.getContextByPID(pid)){
|
||||
for ( ctx in WindowManager.getContextByPID(pid)){
|
||||
lastContextID = addContextNextWorkspace(ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user