backend/x11: add WLR_X11_OUTPUTS support

This commit is contained in:
emersion 2018-03-30 22:09:06 -04:00
parent d4f7ced6e2
commit 0a7a8cbd1c
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 69 additions and 29 deletions

View file

@ -96,6 +96,7 @@ static int x11_event(int fd, uint32_t mask, void *data) {
static bool wlr_x11_backend_start(struct wlr_backend *backend) {
struct wlr_x11_backend *x11 = (struct wlr_x11_backend *)backend;
x11->started = true;
struct {
const char *name;
@ -167,7 +168,7 @@ static bool wlr_x11_backend_start(struct wlr_backend *backend) {
wlr_signal_emit_safe(&x11->backend.events.new_input, &x11->pointer_dev);
for (size_t i = 0; i < x11->requested_outputs; ++i) {
x11_output_create(x11);
wlr_x11_output_create(&x11->backend);
}
return true;