]> git.sesse.net Git - vlc/commitdiff
XCB SD: allow running even if there is no ICCCM window manager
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 19:15:30 +0000 (21:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 13 Feb 2010 19:15:30 +0000 (21:15 +0200)
modules/services_discovery/xcb_apps.c

index 01c9e688346e2acdba0b476bc87ce05434501051..6e35f93b09b052c539c54391c7ff3c2fc84114cb 100644 (file)
@@ -146,13 +146,11 @@ static int Open (vlc_object_t *obj)
     r = xcb_intern_atom_reply (conn, ncl, NULL);
     if (r == NULL || r->atom == 0)
     {
-        dialog_Fatal (sd, _("Application list failure"),
-                  _("Your window manager does not support application list."));
-        msg_Err (sd, "application list not support (_NET_CLIENT_LIST absent)");
-        free (r);
-        goto error;
+        dialog_Fatal (sd, _("Screen capture"),
+            _("Your window manager does not provide a list of applications."));
+        msg_Err (sd, "client list not supported (_NET_CLIENT_LIST absent)");
     }
-    p_sys->net_client_list = r->atom;
+    p_sys->net_client_list = r ? r->atom : 0;
     free (r);
     r = xcb_intern_atom_reply (conn, nwn, NULL);
     if (r != NULL)