[Github-comments] [geany/geany] Avoid gdk_display_get_name() on OS X (#1399)

Colomban Wendling notifications at xxxxx
Mon Feb 20 18:07:37 UTC 2017


b4n commented on this pull request.



> @@ -284,8 +284,15 @@ gint socket_init(gint argc, gchar **argv)
 	GdkDisplay *display = gdk_display_get_default();
 	gchar *p;
 
+	/* On OS X with quartz backend gdk_display_get_name() returns hostname
+	 * using [NSHost currentHost] (it could return more or less whatever string
+	 * as display name is a X11 specific thing). This call can lead to network
+	 * query and block for several seconds so better skip it. */
+#ifndef GDK_WINDOWING_QUARTZ

OK nevermind then

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1399#discussion_r102069961
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170220/71797d32/attachment.html>


More information about the Github-comments mailing list