]> git.sur5r.net Git - i3/i3lock/blobdiff - xcb.c
Remove DPMS support in favor of a wrapper script and xset(1).
[i3/i3lock] / xcb.c
diff --git a/xcb.c b/xcb.c
index e3a33b87600e444c27892d63e9a51b5f84f82e99..f1a9a7680cbd7b2bcba89bbb9cc7ff6821ba5c17 100644 (file)
--- a/xcb.c
+++ b/xcb.c
@@ -10,7 +10,6 @@
 #include <xcb/xcb.h>
 #include <xcb/xcb_image.h>
 #include <xcb/xcb_atom.h>
-#include <xcb/dpms.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
@@ -154,16 +153,6 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
     return win;
 }
 
-/*
- * Set the dpms level to 'mode'.
- *
- */
-void dpms_set_mode(xcb_connection_t *conn, xcb_dpms_dpms_mode_t mode) {
-    xcb_dpms_enable(conn);
-    xcb_dpms_force_level(conn, mode);
-    xcb_flush(conn);
-}
-
 /*
  * Repeatedly tries to grab pointer and keyboard (up to 1000 times).
  *