Copy+paste swaybg code to swaylock for testing

This commit is contained in:
Drew DeVault 2015-12-10 08:18:48 -05:00
parent 067ac6cfa7
commit d2e9c68640
2 changed files with 125 additions and 3 deletions

View file

@ -56,8 +56,8 @@ int main(int argc, const char **argv) {
desktop_shell_set_background(registry->desktop_shell, output->output, window->surface);
list_add(surfaces, window);
GError *err=NULL;
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2],&err);
GError *err = NULL;
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2], &err);
if (!pixbuf) {
sway_abort("Failed to load background image.");
}