#undef explicit
#endif // HAVE_X11_XKBLIB_H
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
+// data
+//-----------------------------------------------------------------------------
+
+extern GtkWidget *wxRootWindow;
+
+//----------------------------------------------------------------------------
// misc.
-// ----------------------------------------------------------------------------
+//----------------------------------------------------------------------------
void wxBell()
{
int wxDisplayDepth()
{
- return gdk_window_get_visual( (GdkWindow*) &gdk_root_parent )->depth;
+ return gdk_window_get_visual( wxRootWindow->window )->depth;
}
int wxGetOsVersion(int *majorVsn, int *minorVsn)