Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nachanon/7f1aff255e24eb01b4fd to your computer and use it in GitHub Desktop.
Save nachanon/7f1aff255e24eb01b4fd to your computer and use it in GitHub Desktop.
Patch for MATE Screen Saver git 0ebac28 (~1.10.2) for displaying user-configured desktop background on lock screen
From: Nutchanon Wetchasit <nachanon@users.noreply.github.com>
Subject: Load user-configured background on password prompt display
Bug: https://github.com/mate-desktop/mate-screensaver/issues/55
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -1053,8 +1053,6 @@
"changed",
G_CALLBACK (on_bg_changed),
manager);
-
- mate_bg_load_from_system_preferences (manager->priv->bg);
}
static void
@@ -1270,6 +1268,10 @@
gs_window_set_background_pixmap (window, NULL);
#endif
}
+ else
+ {
+ mate_bg_load_from_preferences (manager->priv->bg);
+ }
screen = gs_window_get_screen (window);
width = gdk_screen_get_width (screen);
Copy link

ghost commented Sep 19, 2015

thanks krisek, i have never applied a patch before, i was way off... thanks again.

@raveit65
Copy link

raveit65 commented Nov 19, 2016

@ krisek
Is your improvement a replacement or should this work on top of origin patch?
I'm a bit confused about that you add bits at a place where it was removed in origin patch.

@raveit65
Copy link

@krisek
I tried both versions but i think we want to use your improved version as rhel/centos are using a timing desktop bg (dynamic desktop wallpaper). Do you want to make a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment