[mutter] backend/x11: implement bell-notify



commit 428af6d21374c40ef656fda67f196acd615d70a9
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Thu Oct 12 15:10:04 2017 +0200

    backend/x11: implement bell-notify
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788564

 src/backends/x11/meta-clutter-backend-x11.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/x11/meta-clutter-backend-x11.c b/src/backends/x11/meta-clutter-backend-x11.c
index 2e8474d..35f1050 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
 {
@@ -79,6 +80,14 @@ meta_clutter_backend_x11_create_stage (ClutterBackend  *backend,
 }
 
 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;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]