[gnome-panel] notification-area: fix try icons when compositing is off
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] notification-area: fix try icons when compositing is off
- Date: Sun, 8 Oct 2017 17:25:23 +0000 (UTC)
commit e73b4a9cbb88d5fb6797efc409c494e0f53ac179
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Oct 8 20:19:11 2017 +0300
notification-area: fix try icons when compositing is off
This reverts commit 06e938f808043a51f3d71ef701e9e48111f73307.
https://bugzilla.gnome.org/show_bug.cgi?id=788109
modules/notification-area/na-tray-child.c | 3 ++-
modules/notification-area/na-tray-manager.c | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/modules/notification-area/na-tray-child.c b/modules/notification-area/na-tray-child.c
index 364f0d4..c46509a 100644
--- a/modules/notification-area/na-tray-child.c
+++ b/modules/notification-area/na-tray-child.c
@@ -288,7 +288,8 @@ 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_screen_is_composited (screen));
+ child->has_alpha = (visual_has_alpha &&
+ gdk_display_supports_composite (gdk_screen_get_display (screen)));
child->composited = child->has_alpha;
diff --git a/modules/notification-area/na-tray-manager.c b/modules/notification-area/na-tray-manager.c
index 58b91b5..747e4c3 100644
--- a/modules/notification-area/na-tray-manager.c
+++ b/modules/notification-area/na-tray-manager.c
@@ -622,7 +622,7 @@ na_tray_manager_set_visual_property (NaTrayManager *manager)
"_NET_SYSTEM_TRAY_VISUAL");
if (gdk_screen_get_rgba_visual (manager->screen) != NULL &&
- gdk_screen_is_composited (manager->screen))
+ gdk_display_supports_composite (display))
xvisual = GDK_VISUAL_XVISUAL (gdk_screen_get_rgba_visual (manager->screen));
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]