# diff -pU5 panel/panel-application.c{.old,} --- a/panel/panel-application.c 2023-04-04 21:17:34.257898577 -0400 +++ b/panel/panel-application.c 2023-04-04 21:32:03.423918092 -0400 @@ -237,11 +237,12 @@ panel_application_init (PanelApplication application->autosave_timer_id = g_timeout_add_seconds (AUTOSAVE_INTERVAL, panel_application_autosave_timer, application); /* warn the user about restricted features on Wayland */ display = gdk_display_get_default (); - if (GDK_IS_WAYLAND_DISPLAY (display)) +#ifdef GDK_WINDOWING_WAYLAND +if (GDK_IS_WAYLAND_DISPLAY (display)) { if (! gtk_layer_is_supported ()) g_warning ("Wayland detected without layer-shell support (either because of your" " compositor or because Xfce4-panel was built without this support):" " Xfce4-panel might not look like a panel and many of its features will" @@ -250,10 +251,11 @@ panel_application_init (PanelApplication g_warning ("Wayland detected without foreign-toplevel-management support (your" " compositor does not seem to support it): Some Xfce4-panel features will" " not work (e.g. intellihide), as well as some plugins (e.g. ShowDesktop," " Tasklist, WindowMenu)"); } +#endif } static void