Fix wxGetKeyState() compilation with wxGTK 1

This was broken back in a73251a80d which
added check for GDK_WINDOWING_X11 which is not defined by GTK+ 1.

See #14469.
This commit is contained in:
Vadim Zeitlin
2018-07-09 00:09:05 +02:00
parent 8ebcfebc5c
commit a74058a958

View File

@@ -50,8 +50,9 @@ GdkWindow* wxGetTopLevelGDK();
GtkWidget* wxGetTopLevelGTK();
#endif
// Only X11 backend is supported for wxGTK here
#if !defined(__WXGTK__) || defined(GDK_WINDOWING_X11)
// Only X11 backend is supported for wxGTK here (GTK < 2 has no others)
#if !defined(__WXGTK__) || \
(!defined(__WXGTK20__) || defined(GDK_WINDOWING_X11))
// Various X11 Atoms used in this file:
static Atom _NET_WM_STATE = 0;