metacity-09-force-system-bell.diff revision 18258
10139N/A--- metacity-2.28.0/src/core/bell.c 2009-09-09 04:55:35.000000000 +0800
10139N/A+++ /backup/jtan/bell.c 2009-12-23 17:18:47.623372430 +0800
10139N/A@@ -310,15 +310,20 @@
10139N/A
10139N/A ca_proplist_destroy (p);
10139N/A
10139N/A- if (res != CA_SUCCESS && res != CA_ERROR_DISABLED)
10139N/A- {
10139N/A+ XkbForceBell(display->xdisplay, xkb_bell_event->percent);
10139N/A+
10139N/A+
10139N/A+ //if (res != CA_SUCCESS && res != CA_ERROR_DISABLED)
10139N/A+ //{
10139N/A /* ...and in case that failed we use the classic X11 bell. */
10139N/A+ /*
10139N/A XkbForceDeviceBell (display->xdisplay,
10139N/A xkb_bell_event->device,
10139N/A xkb_bell_event->bell_class,
10139N/A xkb_bell_event->bell_id,
10139N/A xkb_bell_event->percent);
10139N/A- }
10139N/A+ */
10139N/A+ //}
10139N/A }
10139N/A }
10139N/A #endif /* HAVE_XKB */
10139N/Adiff -ruN metacity-2.28.1.orig/src/core/delete.c metacity-2.28.1/src/core/delete.c
10139N/A--- metacity-2.28.1.orig/src/core/delete.c 2010-02-02 06:39:27.349000933 +0000
10139N/A+++ metacity-2.28.1/src/core/delete.c 2010-02-02 06:40:26.190105767 +0000
10139N/A@@ -38,6 +38,7 @@
10139N/A #include <string.h>
10139N/A #include <stdlib.h>
10139N/A #include <stdio.h>
10139N/A+#include <sys/wait.h>
10139N/A
10139N/A static void meta_window_present_delete_dialog (MetaWindow *window,
10139N/A guint32 timestamp);
10139N/A