gdk: don't segfault on beep with offscreen window

https://bugzilla.gnome.org/show_bug.cgi?id=748341
This commit is contained in:
Christian Hergert
2015-04-22 16:35:29 -07:00
committed by Matthias Clasen
parent e2a61b595d
commit 6500211ea4

View File

@@ -676,6 +676,12 @@ gdk_offscreen_window_set_opacity (GdkWindow *window, gdouble opacity)
{
}
static gboolean
gdk_offscreen_window_beep (GdkWindow *window)
{
return FALSE;
}
static void
gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
{
@@ -709,7 +715,7 @@ gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass)
impl_class->destroy_foreign = NULL;
impl_class->get_shape = NULL;
impl_class->get_input_shape = NULL;
impl_class->beep = NULL;
impl_class->beep = gdk_offscreen_window_beep;
impl_class->focus = NULL;
impl_class->set_type_hint = NULL;