From 428af6d21374c40ef656fda67f196acd615d70a9 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 12 Oct 2017 15:10:04 +0200 Subject: [PATCH] backend/x11: implement bell-notify https://bugzilla.gnome.org/show_bug.cgi?id=788564 --- src/backends/x11/meta-clutter-backend-x11.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/backends/x11/meta-clutter-backend-x11.c b/src/backends/x11/meta-clutter-backend-x11.c index 2e8474deb..35f1050b0 100644 --- a/src/backends/x11/meta-clutter-backend-x11.c +++ b/src/backends/x11/meta-clutter-backend-x11.c @@ -33,6 +33,7 @@ #include "clutter/clutter.h" #include "clutter/clutter-mutter.h" #include "meta/meta-backend.h" +#include "core/bell.h" struct _MetaClutterBackendX11 { @@ -78,6 +79,14 @@ meta_clutter_backend_x11_create_stage (ClutterBackend *backend, return stage; } +static void +meta_clutter_backend_x11_bell_notify (ClutterBackend *backend) +{ + MetaDisplay *display = meta_get_display (); + + meta_bell_notify (display, NULL); +} + static void meta_clutter_backend_x11_init (MetaClutterBackendX11 *clutter_backend_x11) { @@ -90,4 +99,5 @@ meta_clutter_backend_x11_class_init (MetaClutterBackendX11Class *klass) clutter_backend_class->get_renderer = meta_clutter_backend_x11_get_renderer; clutter_backend_class->create_stage = meta_clutter_backend_x11_create_stage; + clutter_backend_class->bell_notify = meta_clutter_backend_x11_bell_notify; }