diff options
author | lukefromdc <[email protected]> | 2023-12-28 23:18:01 -0500 |
---|---|---|
committer | mouse <[email protected]> | 2024-01-08 14:09:33 +0800 |
commit | ab6288853fb70365e2752b360100f84e1b65af12 (patch) | |
tree | 1d2e1523f19e862503b78afcd14d7d53c681b54e | |
parent | 7f45b836192f42d246fe9709205244e675adea0a (diff) | |
download | mate-media-ab6288853fb70365e2752b360100f84e1b65af12.tar.bz2 mate-media-ab6288853fb70365e2752b360100f84e1b65af12.tar.xz |
meson: fix building wayland support
*Checking for GDK_WINDOWING_WAYLAND breaks the wayland support when built with meson as it is not detected
-rw-r--r-- | mate-volume-control/gvc-stream-applet-icon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mate-volume-control/gvc-stream-applet-icon.c b/mate-volume-control/gvc-stream-applet-icon.c index 7f52972..5d82c33 100644 --- a/mate-volume-control/gvc-stream-applet-icon.c +++ b/mate-volume-control/gvc-stream-applet-icon.c @@ -27,7 +27,7 @@ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> -#if defined(ENABLE_WAYLAND) && defined(GDK_WINDOWING_WAYLAND) +#if defined(ENABLE_WAYLAND) #include <gdk/gdkwayland.h> #include <gtk-layer-shell/gtk-layer-shell.h> #endif @@ -105,7 +105,7 @@ popup_dock (GvcStreamAppletIcon *icon, guint time) gtk_container_foreach (GTK_CONTAINER (icon->priv->dock), (GtkCallback) gtk_widget_show_all, NULL); gtk_widget_get_preferred_size (icon->priv->dock, &dock_req, NULL); -#if defined(ENABLE_WAYLAND) && defined(GDK_WINDOWING_WAYLAND) +#if defined(ENABLE_WAYLAND) if (GDK_IS_WAYLAND_DISPLAY (display)) { gboolean top, bottom, left, right; |