summaryrefslogtreecommitdiffstats
path: root/src/windowmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/windowmanager.h')
-rw-r--r--src/windowmanager.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/windowmanager.h b/src/windowmanager.h
new file mode 100644
index 0000000..c89f983
--- /dev/null
+++ b/src/windowmanager.h
@@ -0,0 +1,22 @@
+#ifndef _WINDOWSMANAGER_H_
+#define _WINDOWSMANAGER_H_
+
+namespace WindowManager
+{
+
+/**
+ * Make sure a window manager is running.
+ * If none is running, start openbox.
+ */
+void ensureRunning();
+
+/**
+ * If we started openbox as the window manager,
+ * terminate it, otherwise leave the current
+ * one running.
+ */
+void stopOwnInstance();
+
+}
+
+#endif