aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/meson.build2
-rw-r--r--backend/wayland/backend.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/backend/meson.build b/backend/meson.build
index 7fcf00b8..dcf7837a 100644
--- a/backend/meson.build
+++ b/backend/meson.build
@@ -25,7 +25,7 @@ backend_files = files(
)
if systemd.found()
- wlr_files += files('session/logind.c')
+ backend_files += files('session/logind.c')
endif
lib_wlr_backend = static_library('wlr_backend', backend_files,
diff --git a/backend/wayland/backend.c b/backend/wayland/backend.c
index d1234c67..86cedc89 100644
--- a/backend/wayland/backend.c
+++ b/backend/wayland/backend.c
@@ -17,9 +17,6 @@ static int dispatch_events(int fd, uint32_t mask, void *data) {
if (mask & WL_EVENT_READABLE) {
count = wl_display_dispatch(backend->remote_display);
}
- if (mask & WL_EVENT_WRITABLE) {
- count = wl_display_flush(backend->remote_display);
- }
if (mask == 0) {
count = wl_display_dispatch_pending(backend->remote_display);
wl_display_flush(backend->remote_display);
@@ -63,7 +60,7 @@ static bool wlr_wl_backend_init(struct wlr_backend *_backend) {
struct wl_event_loop *loop = wl_display_get_event_loop(backend->local_display);
int fd = wl_display_get_fd(backend->remote_display);
int events = WL_EVENT_READABLE | WL_EVENT_ERROR |
- WL_EVENT_HANGUP | WL_EVENT_WRITABLE;
+ WL_EVENT_HANGUP;
backend->remote_display_src = wl_event_loop_add_fd(loop, fd, events,
dispatch_events, backend);
wl_event_source_check(backend->remote_display_src);