-#include "wx/window.h"
-
-//-----------------------------------------------------------------------------
-// global data initialization
-//-----------------------------------------------------------------------------
-
-GdkWindow *wxScreenDC::sm_overlayWindow = (GdkWindow*) NULL;
- int wxScreenDC::sm_overlayWindowX = 0;
- int wxScreenDC::sm_overlayWindowY = 0;
-
-
-//-----------------------------------------------------------------------------
-// create X window
-//-----------------------------------------------------------------------------
-
-extern "C" {
-
-#include "gdk/gdk.h"
-#include "gdk/gdkprivate.h"
-#include "gdk/gdkx.h"
-#include <netinet/in.h>
-
-int nevent_masks = 17;
-int event_mask_table[19] =
-{
- ExposureMask,
- PointerMotionMask,
- PointerMotionHintMask,
- ButtonMotionMask,
- Button1MotionMask,
- Button2MotionMask,
- Button3MotionMask,
- ButtonPressMask | OwnerGrabButtonMask,
- ButtonReleaseMask | OwnerGrabButtonMask,
- KeyPressMask,
- KeyReleaseMask,
- EnterWindowMask,
- LeaveWindowMask,
- FocusChangeMask,
- StructureNotifyMask,
- PropertyChangeMask,
- VisibilityChangeMask,
- 0, /* PROXIMITY_IN */
- 0 /* PROXIMTY_OUT */
-};
-
-GdkWindow*
-gdk_window_transparent_new ( GdkWindow *parent,
- GdkWindowAttr *attributes,
- gint attributes_mask)
-{
- GdkWindow *window;
- GdkWindowPrivate *gprivate;
- GdkWindowPrivate *parent_private;
- GdkVisual *visual;
- Display *parent_display;
- Window xparent;
- Visual *xvisual;
- XSetWindowAttributes xattributes;
- long xattributes_mask;
- XSizeHints size_hints;
- XWMHints wm_hints;
- XClassHint *class_hint;
- int x, y, depth;
- unsigned int gclass;
- char *title;
- int i;
-
- g_return_val_if_fail (attributes != NULL, NULL);
-
- if (!parent)
- parent = (GdkWindow*) &gdk_root_parent;
-
- parent_private = (GdkWindowPrivate*) parent;
- if (parent_private->destroyed)
- return NULL;
-
- xparent = parent_private->xwindow;
- parent_display = parent_private->xdisplay;
-
- gprivate = g_new (GdkWindowPrivate, 1);
- window = (GdkWindow*) gprivate;
-
- gprivate->parent = parent;
-
- if (parent_private != &gdk_root_parent)
- parent_private->children = g_list_prepend (parent_private->children, window);
-
- gprivate->xdisplay = parent_display;
- gprivate->destroyed = FALSE;
- gprivate->resize_count = 0;
- gprivate->ref_count = 1;
- xattributes_mask = 0;
-
- if (attributes_mask & GDK_WA_X)
- x = attributes->x;
- else
- x = 0;
-
- if (attributes_mask & GDK_WA_Y)
- y = attributes->y;
- else
- y = 0;
-
- gprivate->x = x;
- gprivate->y = y;
- gprivate->width = (attributes->width > 1) ? (attributes->width) : (1);
- gprivate->height = (attributes->height > 1) ? (attributes->height) : (1);
- gprivate->window_type = attributes->window_type;
- gprivate->extension_events = FALSE;
- gprivate->dnd_drag_data_type = None;
- gprivate->dnd_drag_data_typesavail =
- gprivate->dnd_drop_data_typesavail = NULL;
- gprivate->dnd_drop_enabled = gprivate->dnd_drag_enabled =
- gprivate->dnd_drag_accepted = gprivate->dnd_drag_datashow =
- gprivate->dnd_drop_data_numtypesavail =
- gprivate->dnd_drag_data_numtypesavail = 0;
- gprivate->dnd_drag_eventmask = gprivate->dnd_drag_savedeventmask = 0;
-
- gprivate->filters = NULL;
- gprivate->children = NULL;
-
- window->user_data = NULL;
-
- if (attributes_mask & GDK_WA_VISUAL)
- visual = attributes->visual;
- else
- visual = gdk_visual_get_system ();
- xvisual = ((GdkVisualPrivate*) visual)->xvisual;