summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-08-28 07:29:11 +0200
committerRay Strode <rstrode@redhat.com>2009-11-20 11:36:25 -0500
commit5a03a5d57897837ce05db3dcf925218770730b01 (patch)
treeb85f53bc9959987b4445b537656ef0e833de7a45 /src
parent2dd137329d7062a32edf20f87e39439ee2cc79c9 (diff)
downloadmetacity-5a03a5d57897837ce05db3dcf925218770730b01.tar.gz
metacity-5a03a5d57897837ce05db3dcf925218770730b01.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/ui/fixedtip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index d2b95f2..bffaf99 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;