From d6651f307d896848372ac696e8335ac47eac8888 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 2 Jul 2019 15:55:51 +0200 Subject: Temporarily spawn openbox if no WM is running --- src/windowmanager.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/windowmanager.h (limited to 'src/windowmanager.h') 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 -- cgit v1.2.3-55-g7522