summaryrefslogtreecommitdiff
path: root/i3lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'i3lock.c')
-rw-r--r--i3lock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/i3lock.c b/i3lock.c
index 72bd646..d265009 100644
--- 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);