mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-17 22:48:13 +02:00
compositor: Load xwayland module first
This is so the systemd-notify module, if used, will notify readiness after we're ready to accept X connections, instead of before. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
0972c6b2da
commit
2badd284a5
1 changed files with 11 additions and 7 deletions
|
|
@ -3729,13 +3729,10 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_data)
|
|||
if (wet_load_shell(wet.compositor, shell, &argc, argv) < 0)
|
||||
goto out;
|
||||
|
||||
weston_config_section_get_string(section, "modules", &modules, "");
|
||||
if (load_modules(wet.compositor, modules, &argc, argv) < 0)
|
||||
goto out;
|
||||
|
||||
if (load_modules(wet.compositor, option_modules, &argc, argv) < 0)
|
||||
goto out;
|
||||
|
||||
/* Load xwayland before other modules - this way if we're using
|
||||
* the systemd-notify module it will notify after we're ready
|
||||
* to receive xwayland connections.
|
||||
*/
|
||||
if (!xwayland) {
|
||||
weston_config_section_get_bool(section, "xwayland", &xwayland,
|
||||
false);
|
||||
|
|
@ -3745,6 +3742,13 @@ wet_main(int argc, char *argv[], const struct weston_testsuite_data *test_data)
|
|||
goto out;
|
||||
}
|
||||
|
||||
weston_config_section_get_string(section, "modules", &modules, "");
|
||||
if (load_modules(wet.compositor, modules, &argc, argv) < 0)
|
||||
goto out;
|
||||
|
||||
if (load_modules(wet.compositor, option_modules, &argc, argv) < 0)
|
||||
goto out;
|
||||
|
||||
section = weston_config_get_section(config, "keyboard", NULL, NULL);
|
||||
weston_config_section_get_bool(section, "numlock-on", &numlock_on, false);
|
||||
if (numlock_on) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue