tray: Don't use gdk_display_supports_composite()

Composite is a hard requirement for mutter's compositor, so if we get
to the point of managing the tray, we already know that the extension
is supported. So let's get rid of yet another deprecation warning.
This commit is contained in:
Florian Müllner 2015-09-26 00:07:58 +02:00
parent ccf1bd9f27
commit 731d64e0e4
2 changed files with 2 additions and 4 deletions

View File

@ -283,8 +283,7 @@ na_tray_child_new (GdkScreen *screen,
depth = gdk_visual_get_depth (visual);
visual_has_alpha = red_prec + blue_prec + green_prec < depth;
child->has_alpha = (visual_has_alpha &&
gdk_display_supports_composite (gdk_screen_get_display (screen)));
child->has_alpha = visual_has_alpha;
child->composited = child->has_alpha;

View File

@ -618,8 +618,7 @@ na_tray_manager_set_visual_property (NaTrayManager *manager)
visual_atom = gdk_x11_get_xatom_by_name_for_display (display,
"_NET_SYSTEM_TRAY_VISUAL");
if (gdk_screen_get_rgba_visual (manager->screen) != NULL &&
gdk_display_supports_composite (display))
if (gdk_screen_get_rgba_visual (manager->screen) != NULL)
xvisual = GDK_VISUAL_XVISUAL (gdk_screen_get_rgba_visual (manager->screen));
else
{