Handle GDK_WA_CURSOR in non-native window creation

This commit is contained in:
Alexander Larsson 2009-01-15 19:13:06 +01:00 committed by Alexander Larsson
parent 764ceead66
commit d6ecaca166
2 changed files with 4 additions and 4 deletions

View File

@ -882,6 +882,10 @@ gdk_window_new (GdkWindow *parent,
private->redirect = private->parent->redirect;
}
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
(attributes->cursor) :
NULL));
return window;
}

View File

@ -763,10 +763,6 @@ _gdk_window_impl_new (GdkWindow *window,
g_object_ref (window);
_gdk_xid_table_insert (screen_x11->display, &draw_impl->xid, window);
gdk_window_set_cursor (window, ((attributes_mask & GDK_WA_CURSOR) ?
(attributes->cursor) :
NULL));
switch (GDK_WINDOW_TYPE (private))
{
case GDK_WINDOW_DIALOG: