Don't use frame extents when not using X11 in wxGTK.
See #16688. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -452,8 +452,12 @@ gtk_frame_window_state_callback( GtkWidget* WXUNUSED(widget),
|
||||
bool wxGetFrameExtents(GdkWindow* window, int* left, int* right, int* top, int* bottom)
|
||||
{
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
static GdkAtom property = gdk_atom_intern("_NET_FRAME_EXTENTS", false);
|
||||
GdkDisplay* display = gdk_window_get_display(window);
|
||||
|
||||
if (!GDK_IS_X11_DISPLAY(display))
|
||||
return false;
|
||||
|
||||
static GdkAtom property = gdk_atom_intern("_NET_FRAME_EXTENTS", false);
|
||||
Atom xproperty = gdk_x11_atom_to_xatom_for_display(display, property);
|
||||
Atom type;
|
||||
int format;
|
||||
|
Reference in New Issue
Block a user