summaryrefslogtreecommitdiff
path: root/desktop-shell/shell.h
diff options
context:
space:
mode:
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-28 11:41:26 +0300
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-09-01 10:18:59 +0300
commit2e62e4ad710d86fb5410e81541fda2c98f97a190 (patch)
treed51ebcf6728218dfdc6fb16718b4694eb10b5b72 /desktop-shell/shell.h
parent8e3fe08c4281205edb8380fceb9954a481c00858 (diff)
downloadweston-2e62e4ad710d86fb5410e81541fda2c98f97a190.tar.gz
shell: quit weston, if weston-desktop-shell dies early
If weston-desktop-shell dies soon after launch, or maybe cannot be executed at all, let weston exit rather than letting the user stare at a black screen. But, do not exit weston, if weston-desktop-shell dies later, as the user may already have apps open, and those apps would likely still function correctly. This gives the user the opportunity to save his work and close the apps properly. This should make one class of "I see only black screen" failures obvious. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'desktop-shell/shell.h')
-rw-r--r--desktop-shell/shell.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-shell/shell.h b/desktop-shell/shell.h
index 67c5f50f..2cfd1d62 100644
--- a/desktop-shell/shell.h
+++ b/desktop-shell/shell.h
@@ -23,6 +23,7 @@
*/
#include <stdbool.h>
+#include <time.h>
#include "compositor.h"
@@ -209,6 +210,8 @@ struct desktop_shell {
enum desktop_shell_panel_position panel_position;
char *client;
+
+ struct timespec startup_time;
};
struct weston_output *