Commit fe6f76a5 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

x11: Make wrapper member a GdkDrawable

This is in preparation for getting rid of GdkDrawable as a dependency of
GdkWindow.
parent becaf660
......@@ -514,7 +514,7 @@ _gdk_windowing_window_init (GdkScreen * screen)
impl = GDK_WINDOW_IMPL_X11 (private->impl);
impl->xid = screen_x11->xroot_window;
impl->wrapper = GDK_DRAWABLE (private);
impl->wrapper = GDK_WINDOW (private);
private->window_type = GDK_WINDOW_ROOT;
private->depth = DefaultDepthOfScreen (screen_x11->xscreen);
......@@ -754,7 +754,7 @@ _gdk_window_impl_new (GdkWindow *window,
impl = g_object_new (_gdk_window_impl_get_type (), NULL);
private->impl = (GdkDrawable *)impl;
impl->wrapper = GDK_DRAWABLE (window);
impl->wrapper = GDK_WINDOW (window);
xdisplay = screen_x11->xdisplay;
......@@ -964,7 +964,7 @@ gdk_window_foreign_new_for_display (GdkDisplay *display,
XVisualIDFromVisual (attrs.visual));
impl = GDK_WINDOW_IMPL_X11 (private->impl);
impl->wrapper = GDK_DRAWABLE (window);
impl->wrapper = window;
private->parent = gdk_xid_table_lookup_for_display (display, parent);
......
......@@ -58,7 +58,7 @@ struct _GdkWindowImplX11
{
GdkDrawable parent_instance;
GdkDrawable *wrapper;
GdkWindow *wrapper;
Window xid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment