diff options
Diffstat (limited to 'i3lock.c')
-rw-r--r-- | i3lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |