gdkwindow: store transient_for window

https://bugzilla.gnome.org/show_bug.cgi?id=756579
This commit is contained in:
William Hua 2016-07-15 20:52:35 -04:00
parent 0a5bee2751
commit 48108c401e
2 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,7 @@ struct _GdkWindow
GdkWindowImpl *impl; /* window-system-specific delegate object */ GdkWindowImpl *impl; /* window-system-specific delegate object */
GdkWindow *parent; GdkWindow *parent;
GdkWindow *transient_for;
GdkVisual *visual; GdkVisual *visual;
gpointer user_data; gpointer user_data;

View File

@ -10370,6 +10370,8 @@ void
gdk_window_set_transient_for (GdkWindow *window, gdk_window_set_transient_for (GdkWindow *window,
GdkWindow *parent) GdkWindow *parent)
{ {
window->transient_for = parent;
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_transient_for (window, parent); GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_transient_for (window, parent);
} }