[nautilus] nautilus-desktop: initialize composited to TRUE
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-desktop: initialize composited to TRUE
- Date: Mon, 22 Aug 2016 13:54:33 +0000 (UTC)
commit 6162d19447fd587402c3c4ef451400e3319178d5
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Aug 19 13:25:15 2016 +0300
nautilus-desktop: initialize composited to TRUE
nautilus_desktop_window_composited_changed function will do nothing
if we use initial value from GdkScreen because of early return:
if (window->details->composited == composited)
return;
Change back initial value to TRUE to make sure that background will
be setup if screen is not composited.
https://bugzilla.gnome.org/show_bug.cgi?id=769360
nautilus-desktop/nautilus-desktop-window.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/nautilus-desktop/nautilus-desktop-window.c b/nautilus-desktop/nautilus-desktop-window.c
index c8909da..b3b4a8e 100644
--- a/nautilus-desktop/nautilus-desktop-window.c
+++ b/nautilus-desktop/nautilus-desktop-window.c
@@ -318,14 +318,13 @@ static void
nautilus_desktop_window_init (NautilusDesktopWindow *window)
{
GtkWidget *widget = GTK_WIDGET (window);
- GdkScreen *screen = gtk_widget_get_screen (widget);
window->details = G_TYPE_INSTANCE_GET_PRIVATE (window, NAUTILUS_TYPE_DESKTOP_WINDOW,
NautilusDesktopWindowDetails);
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (window)),
"nautilus-desktop-window");
- window->details->composited = gdk_screen_is_composited (screen);
+ window->details->composited = TRUE;
nautilus_desktop_window_composited_changed (widget);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]