aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorScott Anderson <scott@anderso.nz>2019-11-19 17:37:43 +1300
committerSimon Ser <contact@emersion.fr>2019-11-19 11:06:38 +0100
commit685a5a11a9f6305f7479550247b333ffdf036d73 (patch)
treedc3c7a229fa1b3478213cf8d642a7c6c1b945d00 /include/backend
parentfe72400bad1c8960da431ca9c8776d142f8c2f70 (diff)
backend/x11: Revert usage of present extension
This reverts commit 3317134adff0ed179e0ecaea6d778dbd0684f771. This reverts commit a3c3b928a3814f1a44babf487b1508415958c721. There are some serious issues when running this on a real X server, as opposed to running this on Xwayland, where this was tested. More investigation needs to be done into why these issues happen and if our usage of the present extension is correct.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/x11.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/backend/x11.h b/include/backend/x11.h
index 59cb8e44..e628e4cb 100644
--- a/include/backend/x11.h
+++ b/include/backend/x11.h
@@ -6,7 +6,6 @@
#include <X11/Xlib-xcb.h>
#include <wayland-server-core.h>
#include <xcb/xcb.h>
-#include <xcb/present.h>
#include <wlr/backend/x11.h>
#include <wlr/config.h>
@@ -17,6 +16,8 @@
#define XCB_EVENT_RESPONSE_TYPE_MASK 0x7f
+#define X11_DEFAULT_REFRESH (60 * 1000) // 60 Hz
+
struct wlr_x11_backend;
struct wlr_x11_output {
@@ -34,7 +35,8 @@ struct wlr_x11_output {
struct wlr_input_device touch_dev;
struct wl_list touchpoints; // wlr_x11_touchpoint::link
- xcb_present_event_t present_context;
+ struct wl_event_source *frame_timer;
+ int frame_delay;
bool cursor_hidden;
};
@@ -76,7 +78,6 @@ struct wlr_x11_backend {
xcb_timestamp_t time;
uint8_t xinput_opcode;
- uint8_t present_opcode;
struct wl_listener display_destroy;
};
@@ -96,7 +97,7 @@ void handle_x11_xinput_event(struct wlr_x11_backend *x11,
void update_x11_pointer_position(struct wlr_x11_output *output,
xcb_timestamp_t time);
-void handle_x11_present_event(struct wlr_x11_backend *x11,
- xcb_present_generic_event_t *ev);
+void handle_x11_configure_notify(struct wlr_x11_output *output,
+ xcb_configure_notify_event_t *event);
#endif