i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 4eccac48725268c0da130adc1ea15c623b281828
parent 371c758999e1d273e8a68e858f17ea195943b666
Author: Martin Dørum <martid0311@gmail.com>
Date:   Fri, 31 May 2019 13:23:53 +0200

Fix a merge issue and a brain fart

Diffstat:
Mi3lock.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -270,7 +270,7 @@ bool bar_reversed = false;
 int is_directory(const char *path) {
     struct stat path_stat;
     stat(path, &path_stat);
-    return !S_ISDIR(path_stat.st_mode);
+    return S_ISDIR(path_stat.st_mode);
 }
 
 /*
@@ -2130,7 +2130,7 @@ int main(int argc, char *argv[]) {
     init_colors_once();
     if (image_path != NULL) {
         if (!is_directory(image_path)) {
-            img = load_image(image_path);
+            img = load_image(image_path, image_raw_format);
         } else {
             /* Path to a directory is provided -> use slideshow mode */
             load_slideshow_images(image_path, image_raw_format);