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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user