summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch30
-rw-r--r--metacity.spec10
2 files changed, 38 insertions, 2 deletions
diff --git a/0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch b/0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch
new file mode 100644
index 0000000..716a263
--- /dev/null
+++ b/0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch
@@ -0,0 +1,30 @@
+From 8132127a749b150d188631e03d36462838620a82 Mon Sep 17 00:00:00 2001
+From: Lennart Poettering <lennart@poettering.net>
+Date: Fri, 28 Aug 2009 07:29:11 +0200
+Subject: [PATCH] tooltip: set window type hint for self-drawn tooltips to GDK_WINDOW_TYPE_HINT_TOOLTIP
+
+libcanberra generates specific tooltip popup sounds and for that
+recognizes the tooltip windows by the GtkWindowTypeHint set for them.
+
+This trivial patch simply sets the hint for the self-drawn tooltips
+metacity uses.
+---
+ src/ui/fixedtip.c | 2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
+
+diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
+index d2b95f2..31a6082 100644
+--- a/src/ui/fixedtip.c
++++ b/src/ui/fixedtip.c
+@@ -71,6 +71,8 @@ meta_fixed_tip_show (Display *xdisplay, int screen_number,
+ if (tip == NULL)
+ {
+ tip = gtk_window_new (GTK_WINDOW_POPUP);
++ gtk_window_set_type_hint (GTK_WINDOW(tip), GDK_WINDOW_TYPE_HINT_TOOLTIP);
++
+ {
+ GdkScreen *gdk_screen;
+ GdkRectangle monitor;
+--
+1.6.4
+
diff --git a/metacity.spec b/metacity.spec
index 6cedb9f..0d6387d 100644
--- a/metacity.spec
+++ b/metacity.spec
@@ -1,7 +1,7 @@
Summary: Unobtrusive window manager
Name: metacity
Version: 2.27.0
-Release: 6%{?dist}
+Release: 7%{?dist}
URL: http://download.gnome.org/sources/metacity/
Source0: http://download.gnome.org/sources/metacity/2.27/metacity-%{version}.tar.bz2
# http://bugzilla.gnome.org/show_bug.cgi?id=558723
@@ -14,6 +14,8 @@ Patch6: Should-set-RestartStyleHint-to-RestartIfRunning-when.patch
Patch7: 0001-bell-increase-bell-rate-limit-from-1-s-to-1-100ms.patch
# http://bugzilla.gnome.org/show_bug.cgi?id=593356
Patch8: 0001-sound-ask-libcanberra-to-cache-alert-desktop-switch-.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=593358
+Patch9: 0001-tooltip-set-window-type-hint-for-self-drawn-tooltips.patch
License: GPLv2+
Group: User Interface/Desktops
@@ -185,8 +187,12 @@ fi
%{_mandir}/man1/metacity-window-demo.1.gz
%changelog
+* Fri Aug 28 2009 Lennart Poettering <lpoetter@redhat.com> - 2.27.0-7
+- Apply another trivial patch related to sound events
+- http://bugzilla.gnome.org/show_bug.cgi?id=593358
+
* Fri Aug 28 2009 Lennart Poettering <lpoetter@redhat.com> - 2.27.0-6
-- Apply to trivial patches for bell/sound
+- Apply two trivial patches for bell/sound
- http://bugzilla.gnome.org/show_bug.cgi?id=593356
- http://bugzilla.gnome.org/show_bug.cgi?id=593355