1
0
Fork 0

Add meta_ui_window_is_dummy()

For reasons related to interaction between the GTK+ CSS code and the
frame sync protocol, the dummy GtkWindow that MetaUI creates to track
theme properties has to be mapped and have MetaWindow associated with it.
Add a private function so that the test framework can filter this out.

https://bugzilla.gnome.org/show_bug.cgi?id=736505
This commit is contained in:
Owen W. Taylor 2014-09-11 10:18:21 -04:00
parent 44ecb1c050
commit 95d9a95b2b
2 changed files with 10 additions and 0 deletions

View file

@ -653,3 +653,11 @@ meta_ui_window_is_widget (MetaUI *ui,
else
return FALSE;
}
gboolean
meta_ui_window_is_dummy (MetaUI *ui,
Window xwindow)
{
GdkWindow *frames_window = gtk_widget_get_window (GTK_WIDGET (ui->frames));
return xwindow == gdk_x11_window_get_xid (frames_window);
}

View file

@ -116,5 +116,7 @@ gboolean meta_ui_have_a_theme (void);
gboolean meta_ui_window_is_widget (MetaUI *ui,
Window xwindow);
gboolean meta_ui_window_is_dummy (MetaUI *ui,
Window xwindow);
#endif