aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 22:54:01 -0400
committeremersion <contact@emersion.fr>2018-04-03 22:54:01 -0400
commit2d6bbf12f8dc9217f86ec232b7343ad3284863f5 (patch)
tree060976b0eb4770fb771a52a13c10d2940d9d2bd5 /include
parent8f8470aed95209040ac1f73bd42091d32f864aa7 (diff)
backend/{x11,headless}: fix refresh rate
Diffstat (limited to 'include')
-rw-r--r--include/backend/headless.h2
-rw-r--r--include/backend/x11.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h
index e130bae1..add4c4e8 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -4,6 +4,8 @@
#include <wlr/backend/headless.h>
#include <wlr/backend/interface.h>
+#define HEADLESS_DEFAULT_REFRESH (60 * 1000) // 60 Hz
+
struct wlr_headless_backend {
struct wlr_backend backend;
struct wlr_egl egl;
diff --git a/include/backend/x11.h b/include/backend/x11.h
index 2fce409e..1c88cefc 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -12,6 +12,8 @@
#define XCB_EVENT_RESPONSE_TYPE_MASK 0x7f
+#define X11_DEFAULT_REFRESH (60 * 1000) // 60 Hz
+
struct wlr_x11_backend;
struct wlr_x11_output {