<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 28 Apr 2017, at 13:52, Marc-André Lureau <<a href="mailto:marcandre.lureau@redhat.com" class="">marcandre.lureau@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">----- Original Message -----</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Hi<br class=""><br class="">Apparently, it is available on macos:<br class=""><a href="https://trac.macports.org/browser/trunk/dports/graphics/libepoxy/Portfile" class="">https://trac.macports.org/browser/trunk/dports/graphics/libepoxy/Portfile</a><br class=""><br class="">but your patch looks correct nonetheless (with the commit summary updated)<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Ah it may be just epoxy/egl.h not availale on macos, my bad</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote><div><br class=""></div><div>If there’s a version available, I’m interested. But I did not find it back when I wrote that patch.</div><div><br class=""></div><div>Christophe</div><br class=""><blockquote type="cite" class=""><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class=""><br class="">----- Original Message -----<br class=""><blockquote type="cite" class="">Signed-off-by: Christophe de Dinechin <<a href="mailto:dinechin@redhat.com" class="">dinechin@redhat.com</a>><br class="">---<br class="">configure.ac            | 13 ++++++++++---<br class="">src/Makefile.am         |  2 +-<br class="">src/spice-widget-priv.h |  6 +++---<br class="">src/spice-widget.c      | 27 ++++++++++++++-------------<br class="">4 files changed, 28 insertions(+), 20 deletions(-)<br class=""><br class="">diff --git a/configure.ac b/configure.ac<br class="">index a6ac2de..caa2dc9 100644<br class="">--- a/configure.ac<br class="">+++ b/configure.ac<br class="">@@ -74,9 +74,16 @@ esac<br class="">AC_MSG_RESULT([$os_mac])<br class="">AM_CONDITIONAL([OS_MAC],[test "$os_mac" = "yes"])<br class=""><br class="">-AC_CHECK_HEADERS([sys/socket.h netinet/in.h arpa/inet.h])<br class="">-AC_CHECK_HEADERS([termios.h])<br class="">-<br class="">+AC_CHECK_HEADERS([sys/socket.h netinet/in.h arpa/inet.h termios.h])<br class="">+AC_CHECK_HEADERS([epoxy/egl.h],<br class="">+                 [have_egl=yes],<br class="">+                 [have_egl=no])<br class="">+AC_MSG_CHECKING([if we can use EGL in libepoxy)])<br class="">+AC_MSG_RESULT([$have_egl])<br class="">+AM_CONDITIONAL([HAVE_EGL],[test "$have_egl" = "yes"])<br class="">+AS_IF([test "$have_egl" = "yes"],<br class="">+       AC_DEFINE([HAVE_EGL], [1], [Define if supporting EGL]))<br class="">+<br class="">AC_CHECK_LIBM<br class="">AC_SUBST(LIBM)<br class=""><br class="">diff --git a/src/Makefile.am b/src/Makefile.am<br class="">index 4fa7357..bb7ad6c 100644<br class="">--- a/src/Makefile.am<br class="">+++ b/src/Makefile.am<br class="">@@ -145,7 +145,7 @@ SPICE_GTK_SOURCES_COMMON +=<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">  </span>\<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>spice-widget-cairo.c<span class="Apple-tab-span" style="white-space: pre;">      </span><span class="Apple-tab-span" style="white-space: pre;">  </span>\<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>$(NULL)<br class=""><br class="">-if !OS_WIN32<br class="">+if HAVE_EGL<br class="">SPICE_GTK_SOURCES_COMMON +=<span class="Apple-tab-span" style="white-space: pre;">   </span><span class="Apple-tab-span" style="white-space: pre;">  </span>\<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>spice-widget-egl.c<span class="Apple-tab-span" style="white-space: pre;">        </span><span class="Apple-tab-span" style="white-space: pre;">  </span>\<br class=""><span class="Apple-tab-span" style="white-space: pre;">    </span>$(NULL)<br class="">diff --git a/src/spice-widget-priv.h b/src/spice-widget-priv.h<br class="">index e29e1b7..5b3216f 100644<br class="">--- a/src/spice-widget-priv.h<br class="">+++ b/src/spice-widget-priv.h<br class="">@@ -24,7 +24,7 @@<br class="">#include <windows.h><br class="">#endif<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#ifdef HAVE_EPOXY_EGL_H<br class="">#include <epoxy/egl.h><br class="">#endif<br class=""><br class="">@@ -133,7 +133,7 @@ struct _SpiceDisplayPrivate {<br class="">    int                     x11_accel_denominator;<br class="">    int                     x11_threshold;<br class="">#endif<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    struct {<br class="">        gboolean            context_ready;<br class="">        gboolean            enabled;<br class="">@@ -150,7 +150,7 @@ struct _SpiceDisplayPrivate {<br class="">        gboolean            call_draw_done;<br class="">        SpiceGlScanout      scanout;<br class="">    } egl;<br class="">-#endif<br class="">+#endif // HAVE_EGL<br class="">};<br class=""><br class="">int      spice_cairo_image_create                 (SpiceDisplay *display);<br class="">diff --git a/src/spice-widget.c b/src/spice-widget.c<br class="">index 5bbba8f..91aed58 100644<br class="">--- a/src/spice-widget.c<br class="">+++ b/src/spice-widget.c<br class="">@@ -235,7 +235,7 @@ static gint get_display_id(SpiceDisplay *display)<br class=""><br class="">static bool egl_enabled(SpiceDisplayPrivate *d)<br class="">{<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    return d->egl.enabled;<br class="">#else<br class="">    return false;<br class="">@@ -574,7 +574,7 @@ static void grab_notify(SpiceDisplay *display, gboolean<br class="">was_grabbed)<br class="">}<br class=""><br class="">#if GTK_CHECK_VERSION(3,16,0)<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">/* Ignore GLib's too-new warnings */<br class="">G_GNUC_BEGIN_IGNORE_DEPRECATIONS<br class="">static gboolean<br class="">@@ -646,7 +646,7 @@ static void spice_display_init(SpiceDisplay *display)<br class="">    gtk_stack_set_visible_child(d->stack, area);<br class=""><br class="">#if GTK_CHECK_VERSION(3,16,0)<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">/* Ignore GLib's too-new warnings */<br class="">G_GNUC_BEGIN_IGNORE_DEPRECATIONS<br class="">    area = gtk_gl_area_new();<br class="">@@ -977,6 +977,7 @@ static void set_mouse_accel(SpiceDisplay *display,<br class="">gboolean enabled)<br class="">    }<br class="">#else<br class="">    g_warning("Mouse acceleration code missing for your platform");<br class="">+    (void) d;<br class="">#endif<br class="">}<br class=""><br class="">@@ -1305,7 +1306,7 @@ static gboolean do_color_convert(SpiceDisplay<br class="">*display,<br class="">GdkRectangle *r)<br class="">    return true;<br class="">}<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">static void set_egl_enabled(SpiceDisplay *display, bool enabled)<br class="">{<br class="">    SpiceDisplayPrivate *d = display->priv;<br class="">@@ -1341,7 +1342,7 @@ static gboolean draw_event(GtkWidget *widget, cairo_t<br class="">*cr, gpointer data)<br class="">    SpiceDisplayPrivate *d = display->priv;<br class="">    g_return_val_if_fail(d != NULL, false);<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    if (egl_enabled(d) &&<br class="">        g_str_equal(gtk_stack_get_visible_child_name(d->stack),<br class="">        "draw-area")) {<br class="">        spice_egl_update_display(display);<br class="">@@ -2101,7 +2102,7 @@ static void size_allocate(GtkWidget *widget,<br class="">GtkAllocation *conf, gpointer data)<br class="">        d->ww = conf->width;<br class="">        d->wh = conf->height;<br class="">        recalc_geometry(widget);<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">        if (egl_enabled(d))<br class="">            spice_egl_resize_display(display, conf->width, conf->height);<br class="">#endif<br class="">@@ -2144,7 +2145,7 @@ static void realize(GtkWidget *widget)<br class="">static void unrealize(GtkWidget *widget)<br class="">{<br class="">    spice_cairo_image_destroy(SPICE_DISPLAY(widget));<br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    spice_egl_unrealize_display(SPICE_DISPLAY(widget));<br class="">#endif<br class=""><br class="">@@ -2500,7 +2501,7 @@ static void update_area(SpiceDisplay *display,<br class="">        .height = height<br class="">    };<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    if (egl_enabled(d)) {<br class="">        const SpiceGlScanout *so =<br class="">            spice_display_get_gl_scanout(SPICE_DISPLAY_CHANNEL(d->display));<br class="">@@ -2597,7 +2598,7 @@ static void invalidate(SpiceChannel *channel,<br class="">        .height = h<br class="">    };<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    set_egl_enabled(display, false);<br class="">#endif<br class=""><br class="">@@ -2661,7 +2662,7 @@ static void cursor_set(SpiceCursorChannel *channel,<br class="">    } else<br class="">        g_warn_if_reached();<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    if (egl_enabled(d))<br class="">        spice_egl_cursor_set(display);<br class="">#endif<br class="">@@ -2833,7 +2834,7 @@ static void inputs_channel_event(SpiceChannel<br class="">*channel,<br class="">SpiceChannelEvent event,<br class="">    spice_display_set_keypress_delay(display, delay);<br class="">}<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">G_GNUC_INTERNAL<br class="">void spice_display_widget_gl_scanout(SpiceDisplay *display)<br class="">{<br class="">@@ -2942,7 +2943,7 @@ static void channel_new(SpiceSession *s, SpiceChannel<br class="">*channel, gpointer data)<br class="">            mark(display, primary.marked);<br class="">        }<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">        spice_g_signal_connect_object(channel, "notify::gl-scanout",<br class="">                                      G_CALLBACK(spice_display_widget_gl_scanout),<br class="">                                      display, G_CONNECT_SWAPPED);<br class="">@@ -3102,7 +3103,7 @@ GdkPixbuf *spice_display_get_pixbuf(SpiceDisplay<br class="">*display)<br class="">    g_return_val_if_fail(d != NULL, NULL);<br class="">    g_return_val_if_fail(d->display != NULL, NULL);<br class=""><br class="">-#ifndef G_OS_WIN32<br class="">+#if HAVE_EGL<br class="">    if (egl_enabled(d)) {<br class="">        GdkPixbuf *tmp;<br class=""><br class="">--<br class="">2.11.0 (Apple Git-81)<br class=""><br class="">_______________________________________________<br class="">Spice-devel mailing list<br class=""><a href="mailto:Spice-devel@lists.freedesktop.org" class="">Spice-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/spice-devel<br class=""><br class=""></blockquote><br class=""></blockquote><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Spice-devel mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Spice-devel@lists.freedesktop.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Spice-devel@lists.freedesktop.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.freedesktop.org/mailman/listinfo/spice-devel" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.freedesktop.org/mailman/listinfo/spice-devel</a></div></blockquote></div><br class=""></body></html>