xwayland: Pass -listenfd instead of -listen <fd>
The -listen <fd> option has been deprecated. Its replacement is -listenfd. Signed-off-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
This commit is contained in:
committed by
Simon Ser
parent
e62ccf179a
commit
022ea43f9b
+11
-2
@@ -123,14 +123,23 @@ spawn_xserver(void *user_data, const char *display, int abstract_fd, int unix_fd
|
|||||||
xserver,
|
xserver,
|
||||||
display,
|
display,
|
||||||
"-rootless",
|
"-rootless",
|
||||||
|
#ifdef HAVE_XWAYLAND_LISTENFD
|
||||||
|
"-listenfd", abstract_fd_str,
|
||||||
|
"-listenfd", unix_fd_str,
|
||||||
|
#else
|
||||||
"-listen", abstract_fd_str,
|
"-listen", abstract_fd_str,
|
||||||
"-listen", unix_fd_str,
|
"-listen", unix_fd_str,
|
||||||
|
#endif
|
||||||
"-wm", wm_fd_str,
|
"-wm", wm_fd_str,
|
||||||
"-terminate",
|
"-terminate",
|
||||||
NULL) < 0)
|
NULL) < 0)
|
||||||
weston_log("exec of '%s %s -rootless "
|
weston_log("exec of '%s %s -rootless "
|
||||||
"-listen %s -listen %s -wm %s "
|
#ifdef HAVE_XWAYLAND_LISTENFD
|
||||||
"-terminate' failed: %s\n",
|
"-listenfd %s -listenfd %s "
|
||||||
|
#else
|
||||||
|
"-listen %s -listen %s "
|
||||||
|
#endif
|
||||||
|
"-wm %s -terminate' failed: %s\n",
|
||||||
xserver, display,
|
xserver, display,
|
||||||
abstract_fd_str, unix_fd_str, wm_fd_str,
|
abstract_fd_str, unix_fd_str, wm_fd_str,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|||||||
@@ -2,6 +2,13 @@ if not get_option('xwayland')
|
|||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
xwayland_dep = dependency('xwayland', required: false)
|
||||||
|
if xwayland_dep.found()
|
||||||
|
if xwayland_dep.get_pkgconfig_variable('have_listenfd') == 'true'
|
||||||
|
config_h.set('HAVE_XWAYLAND_LISTENFD', '1')
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
srcs_xwayland = [
|
srcs_xwayland = [
|
||||||
'launcher.c',
|
'launcher.c',
|
||||||
'window-manager.c',
|
'window-manager.c',
|
||||||
|
|||||||
Reference in New Issue
Block a user