projects
/
profile
/
ivi
/
weston-ivi-shell.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b4b61a
)
compositor-drm: ensure we run drm-backend using weston-launch
author
Rafal Mielniczuk
<rafal.mielniczuk2@gmail.com>
Wed, 27 Mar 2013 17:39:28 +0000
(18:39 +0100)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Wed, 27 Mar 2013 17:46:01 +0000
(13:46 -0400)
We do this by checking if launcher_sock != -1
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=60926
src/compositor-drm.c
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
fa21495
..
3d200dd
100644
(file)
--- a/
src/compositor-drm.c
+++ b/
src/compositor-drm.c
@@
-2166,6
+2166,13
@@
drm_compositor_create(struct wl_display *display,
goto err_base;
}
+ /* Check if we run drm-backend using weston-launch */
+ if (ec->base.launcher_sock == -1) {
+ weston_log("fatal: drm backend should be run "
+ "using weston-launch binary\n");
+ goto err_compositor;
+ }
+
ec->udev = udev_new();
if (ec->udev == NULL) {
weston_log("failed to initialize udev context\n");