control: tag -1 patch

I didn't quickly get a headless or other setup to reproduce the
original problem but went ahead and developed a potential fix based on
smcv's suggestion.

Please try the short patch attached, I don't currently have a way to test.

Best wishes,
Mike
description: eliminate spurious message when wayland is not active
bug-debian: https://bugs.debian.org/1093464
author: Michael Gilbert <[email protected]>

--- a/dlls/winewayland.drv/waylanddrv_main.c
+++ b/dlls/winewayland.drv/waylanddrv_main.c
@@ -82,6 +82,16 @@ static void wayland_init_process_name(vo
 
 static NTSTATUS waylanddrv_unix_init(void *arg)
 {
+    /* Is there indication of an active wayland session (debian bug #1093464)? */
+    if (!secure_getenv("WAYLAND_DISPLAY"))
+    {
+        const char *wayland = "wayland";
+        const char *session = secure_getenv("XDG_SESSION_TYPE");
+
+        if (!session) return STATUS_UNSUCCESSFUL;
+        if (strncasecmp(session, wayland, strlen(wayland))) return STATUS_UNSUCCESSFUL;
+    }
+
     /* Set the user driver functions now so that they are available during
      * our initialization. We clear them on error. */
     __wine_set_user_driver(&waylanddrv_funcs, WINE_GDI_DRIVER_VERSION);

Reply via email to