summaryrefslogtreecommitdiff
path: root/core/os
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 /core/os
parent29353808f0391f78627c43090f1bff882d56f11e (diff)
x11: use different strings for WM_CLASS depending on context
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.cpp4
-rw-r--r--core/os/os.h7
2 files changed, 11 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index e93038f854..0bc06c8375 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -523,6 +523,10 @@ String OS::get_joy_guid(int p_device) const {
return "Default Joystick";
}
+void OS::set_context(int p_context) {
+
+}
+
OS::OS() {
last_error=NULL;
frames_drawn=0;
diff --git a/core/os/os.h b/core/os/os.h
index e53980a8fe..dd1cf2ded2 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -402,6 +402,13 @@ public:
virtual bool is_joy_known(int p_device);
virtual String get_joy_guid(int p_device)const;
+ enum EngineContext {
+ CONTEXT_EDITOR,
+ CONTEXT_PROJECTMAN,
+ };
+
+ virtual void set_context(int p_context);
+
OS();
virtual ~OS();