]> git.sur5r.net Git - i3/i3lock/blobdiff - i3lock.c
draw the unlock indicator in the middle of every screen
[i3/i3lock] / i3lock.c
index 72bd646ac612bfee8b7668ac01ee721736ca766c..d265009c71ac672f4747f9b9da0229d544e2b425 100644 (file)
--- a/i3lock.c
+++ b/i3lock.c
@@ -36,6 +36,7 @@
 #include "xcb.h"
 #include "cursors.h"
 #include "unlock_indicator.h"
+#include "xinerama.h"
 
 char color[7] = "ffffff";
 uint32_t last_resolution[2];
@@ -618,6 +619,9 @@ int main(int argc, char *argv[]) {
         xcb_connection_has_error(conn))
         errx(EXIT_FAILURE, "Could not connect to X11, maybe you need to set DISPLAY?");
 
+    xinerama_init();
+    xinerama_query_screens();
+
     /* if DPMS is enabled, check if the X server really supports it */
     if (dpms) {
         xcb_dpms_capable_cookie_t dpmsc = xcb_dpms_capable(conn);