diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-10 08:18:48 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-10 08:18:48 -0500 |
commit | d2e9c6864005d716a2d66f5bff5b8bd87b180574 (patch) | |
tree | e1d9f82364e65ac2206a5afed4294491daf7a071 /swaybg | |
parent | Discover swaylock extension in registry (diff) | |
download | sway-d2e9c6864005d716a2d66f5bff5b8bd87b180574.tar.gz sway-d2e9c6864005d716a2d66f5bff5b8bd87b180574.tar.zst sway-d2e9c6864005d716a2d66f5bff5b8bd87b180574.zip |
Copy+paste swaybg code to swaylock for testing
Diffstat (limited to 'swaybg')
-rw-r--r-- | swaybg/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybg/main.c b/swaybg/main.c index 0bb83396..2ae06c6f 100644 --- a/swaybg/main.c +++ b/swaybg/main.c | |||
@@ -56,8 +56,8 @@ int main(int argc, const char **argv) { | |||
56 | desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); | 56 | desktop_shell_set_background(registry->desktop_shell, output->output, window->surface); |
57 | list_add(surfaces, window); | 57 | list_add(surfaces, window); |
58 | 58 | ||
59 | GError *err=NULL; | 59 | GError *err = NULL; |
60 | GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2],&err); | 60 | GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(argv[2], &err); |
61 | if (!pixbuf) { | 61 | if (!pixbuf) { |
62 | sway_abort("Failed to load background image."); | 62 | sway_abort("Failed to load background image."); |
63 | } | 63 | } |