aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
commit6710de9878a07a185d28f9cec71e3f1b3d3407ab (patch)
treedec44173de7b133fbac0230ac2530af4c4ff0bc7 /include/backend
parent41fccb8507bcc1b18cff0c785c5697f9f0bdceda (diff)
parent19b576734e75d65ed6e28b13131f20f6444cba48 (diff)
Merge branch 'master' into xwayland-dnd
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/headless.h2
-rw-r--r--include/backend/libinput.h2
-rw-r--r--include/backend/x11.h4
3 files changed, 8 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/libinput.h b/include/backend/libinput.h
index f828c310..4eee7eb8 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -29,6 +29,8 @@ struct wlr_libinput_input_device {
struct libinput_device *handle;
};
+uint32_t usec_to_msec(uint64_t usec);
+
void wlr_libinput_event(struct wlr_libinput_backend *state,
struct libinput_event *event);
diff --git a/include/backend/x11.h b/include/backend/x11.h
index 33c9a427..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 {
@@ -79,6 +81,8 @@ const struct wlr_input_device_impl input_device_impl;
bool x11_handle_input_event(struct wlr_x11_backend *x11,
xcb_generic_event_t *event);
+void x11_update_pointer_position(struct wlr_x11_output *output,
+ xcb_timestamp_t time);
void x11_output_handle_configure_notify(struct wlr_x11_output *output,
xcb_configure_notify_event_t *event);