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:
parent
ccf1bd9f27
commit
731d64e0e4
@ -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;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user