aboutsummaryrefslogtreecommitdiff
path: root/main/main.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2016-02-03 11:30:22 +0100
committerRémi Verschelde2016-02-03 11:30:22 +0100
commitc0aade4ba43eb2dc5a0f27d9e265e0011f187e09 (patch)
tree730bcd48cd0a4a19f581473e3916ed03e88414ff /main/main.cpp
parent7cb930dbede1b9c21cf138e4a38ebb9e3dbd099f (diff)
parent11e4c128aca9f2d687d06fe07e97c8636a27b17a (diff)
downloadgodot-c0aade4ba43eb2dc5a0f27d9e265e0011f187e09.tar.gz
godot-c0aade4ba43eb2dc5a0f27d9e265e0011f187e09.tar.zst
godot-c0aade4ba43eb2dc5a0f27d9e265e0011f187e09.zip
Merge pull request #3493 from Hinsbart/wm_class
x11: use different strings for WM_CLASS depending on context
Diffstat (limited to 'main/main.cpp')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index f8786f5ae..68c40a6f2 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -1321,6 +1321,7 @@ bool Main::start() {
}
}
}
+ OS::get_singleton()->set_context(OS::CONTEXT_EDITOR);
//editor_node->set_edited_scene(game);
} else {
@@ -1465,6 +1466,7 @@ bool Main::start() {
ProjectManager *pmanager = memnew( ProjectManager );
sml->get_root()->add_child(pmanager);
+ OS::get_singleton()->set_context(OS::CONTEXT_PROJECTMAN);
}
#endif