Rename gdk_window_set_has_native to gdk_window_ensure_native

This also removes the (unimplemented) possibility to change a window to
non-native. This seems generally not very useful, and there are some problems
with it, for instance if two "users" need a window to be native and then
one of the "users" doesn't need it anymore it can't change it back, because
it is unaware of the other reason the window is native.
This commit is contained in:
Alexander Larsson
2009-06-01 11:57:59 +02:00
parent d1f5050262
commit 287b821705
7 changed files with 76 additions and 93 deletions

View File

@ -915,7 +915,7 @@ gdk_x11_drawable_get_xid (GdkDrawable *drawable)
/* Try to ensure the window has a native window */
if (!_gdk_window_has_impl (window))
{
gdk_window_set_has_native (window, TRUE);
gdk_window_ensure_native (window);
/* We sync here to ensure the window is created in the Xserver when
* this function returns. This is required because the returned XID