compositor: Fix compilation without xserver launcher
This commit is contained in:
committed by
Kristian Høgsberg
parent
de56c311d9
commit
0eee939d76
@@ -2561,8 +2561,10 @@ int main(int argc, char *argv[])
|
|||||||
ec->option_idle_time = option_idle_time;
|
ec->option_idle_time = option_idle_time;
|
||||||
ec->idle_time = option_idle_time;
|
ec->idle_time = option_idle_time;
|
||||||
|
|
||||||
|
#ifdef BUILD_XSERVER_LAUNCHER
|
||||||
if (xserver)
|
if (xserver)
|
||||||
weston_xserver_init(ec);
|
weston_xserver_init(ec);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (shell_init(ec) < 0)
|
if (shell_init(ec) < 0)
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
@@ -2580,8 +2582,10 @@ int main(int argc, char *argv[])
|
|||||||
/* prevent further rendering while shutting down */
|
/* prevent further rendering while shutting down */
|
||||||
ec->state = WESTON_COMPOSITOR_SLEEPING;
|
ec->state = WESTON_COMPOSITOR_SLEEPING;
|
||||||
|
|
||||||
|
#ifdef BUILD_XSERVER_LAUNCHER
|
||||||
if (xserver)
|
if (xserver)
|
||||||
weston_xserver_destroy(ec);
|
weston_xserver_destroy(ec);
|
||||||
|
#endif
|
||||||
|
|
||||||
ec->shell->destroy(ec->shell);
|
ec->shell->destroy(ec->shell);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user