mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
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.
This commit is contained in:
parent
2dd137329d
commit
5a03a5d578
@ -71,6 +71,8 @@ meta_fixed_tip_show (Display *xdisplay, int screen_number,
|
|||||||
if (tip == NULL)
|
if (tip == NULL)
|
||||||
{
|
{
|
||||||
tip = gtk_window_new (GTK_WINDOW_POPUP);
|
tip = gtk_window_new (GTK_WINDOW_POPUP);
|
||||||
|
gtk_window_set_type_hint (GTK_WINDOW(tip), GDK_WINDOW_TYPE_HINT_TOOLTIP);
|
||||||
|
|
||||||
{
|
{
|
||||||
GdkScreen *gdk_screen;
|
GdkScreen *gdk_screen;
|
||||||
GdkRectangle monitor;
|
GdkRectangle monitor;
|
||||||
|
Loading…
Reference in New Issue
Block a user