summaryrefslogtreecommitdiffstats
path: root/swaylock
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 23:42:40 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-05 23:42:40 +0100
commit364e37a1ebe8d3dfca7f1e59d247ace76e3f90b8 (patch)
treead4982838b282f2424c29490b00014ed62c0bdfe /swaylock
parentInit layout before checking config (diff)
downloadsway-364e37a1ebe8d3dfca7f1e59d247ace76e3f90b8.tar.gz
sway-364e37a1ebe8d3dfca7f1e59d247ace76e3f90b8.tar.zst
sway-364e37a1ebe8d3dfca7f1e59d247ace76e3f90b8.zip
Fix whitespace issues.
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/CMakeLists.txt12
-rw-r--r--swaylock/main.c8
2 files changed, 10 insertions, 10 deletions
diff --git a/swaylock/CMakeLists.txt b/swaylock/CMakeLists.txt
index 6b110e77..ff76cdbc 100644
--- a/swaylock/CMakeLists.txt
+++ b/swaylock/CMakeLists.txt
@@ -22,12 +22,12 @@ target_link_libraries(swaylock
22) 22)
23 23
24if (WITH_GDK_PIXBUF) 24if (WITH_GDK_PIXBUF)
25 include_directories( 25 include_directories(
26 ${GDK_PIXBUF_INCLUDE_DIRS} 26 ${GDK_PIXBUF_INCLUDE_DIRS}
27 ) 27 )
28 target_link_libraries(swaylock 28 target_link_libraries(swaylock
29 ${GDK_PIXBUF_LIBRARIES} 29 ${GDK_PIXBUF_LIBRARIES}
30 ) 30 )
31endif() 31endif()
32 32
33install( 33install(
diff --git a/swaylock/main.c b/swaylock/main.c
index eccb902e..9de95e7a 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -38,10 +38,10 @@ char *password;
38struct pam_response *pam_reply; 38struct pam_response *pam_reply;
39 39
40int function_conversation(int num_msg, const struct pam_message **msg, 40int function_conversation(int num_msg, const struct pam_message **msg,
41 struct pam_response **resp, void *appdata_ptr) { 41 struct pam_response **resp, void *appdata_ptr) {
42 *resp = pam_reply; 42 *resp = pam_reply;
43 return PAM_SUCCESS; 43 return PAM_SUCCESS;
44} 44}
45 45
46/** 46/**
47 * password will be zeroed out. 47 * password will be zeroed out.
@@ -122,7 +122,7 @@ int main(int argc, char **argv) {
122 cairo_surface_t *image = gdk_cairo_image_surface_create_from_pixbuf(pixbuf); 122 cairo_surface_t *image = gdk_cairo_image_surface_create_from_pixbuf(pixbuf);
123 g_object_unref(pixbuf); 123 g_object_unref(pixbuf);
124#else 124#else
125 cairo_surface_t *image = cairo_image_surface_create_from_png(argv[1]); 125 cairo_surface_t *image = cairo_image_surface_create_from_png(argv[1]);
126#endif //WITH_GDK_PIXBUF 126#endif //WITH_GDK_PIXBUF
127 if (!image) { 127 if (!image) {
128 sway_abort("Failed to read background image."); 128 sway_abort("Failed to read background image.");