summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorhondres <liu.gam3@gmail.com>2016-01-27 21:53:37 +0100
committerhondres <liu.gam3@gmail.com>2016-01-27 21:53:37 +0100
commit11e4c128aca9f2d687d06fe07e97c8636a27b17a (patch)
treebc1dd718c90b460eb8f679635b453932fa2b7b5d /main
parent29353808f0391f78627c43090f1bff882d56f11e (diff)
x11: use different strings for WM_CLASS depending on context
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 19fe037613..023d8d49a2 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1319,6 +1319,7 @@ bool Main::start() {
}
}
}
+ OS::get_singleton()->set_context(OS::CONTEXT_EDITOR);
//editor_node->set_edited_scene(game);
} else {
@@ -1463,6 +1464,7 @@ bool Main::start() {
ProjectManager *pmanager = memnew( ProjectManager );
sml->get_root()->add_child(pmanager);
+ OS::get_singleton()->set_context(OS::CONTEXT_PROJECTMAN);
}
#endif