build fix for GTK+ 3.10, closes #15667
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dc8678a4a9
commit
0082512adf
@ -39,6 +39,9 @@
|
|||||||
#include <X11/Xatom.h> // XA_CARDINAL
|
#include <X11/Xatom.h> // XA_CARDINAL
|
||||||
#include "wx/unix/utilsx11.h"
|
#include "wx/unix/utilsx11.h"
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef GDK_WINDOWING_WAYLAND
|
||||||
|
#include <gdk/gdkwayland.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include "wx/gtk/private/gtk2-compat.h"
|
#include "wx/gtk/private/gtk2-compat.h"
|
||||||
@ -730,7 +733,7 @@ bool wxTopLevelWindowGTK::Create( wxWindow *parent,
|
|||||||
m_gdkDecor |= GDK_DECOR_TITLE;
|
m_gdkDecor |= GDK_DECOR_TITLE;
|
||||||
#if defined(GDK_WINDOWING_WAYLAND) && GTK_CHECK_VERSION(3,10,0)
|
#if defined(GDK_WINDOWING_WAYLAND) && GTK_CHECK_VERSION(3,10,0)
|
||||||
else if (
|
else if (
|
||||||
GDK_IS_WAYLAND_SCREEN(gtk_window_get_screen(GTK_WINDOW(m_widget))) &&
|
GDK_IS_WAYLAND_DISPLAY(gtk_widget_get_display(m_widget)) &&
|
||||||
gtk_check_version(3,10,0) == NULL)
|
gtk_check_version(3,10,0) == NULL)
|
||||||
{
|
{
|
||||||
gtk_window_set_titlebar(GTK_WINDOW(m_widget), gtk_header_bar_new());
|
gtk_window_set_titlebar(GTK_WINDOW(m_widget), gtk_header_bar_new());
|
||||||
|
Loading…
Reference in New Issue
Block a user