mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Move keyboard logic to wlr_{keyboard,seat}
This commit is contained in:
parent
b84d59403f
commit
61e451ea1b
15 changed files with 257 additions and 87 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <wlr/backend.h>
|
||||
#include <wlr/backend/session.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include "shared.h"
|
||||
|
||||
|
|
@ -52,6 +53,11 @@ int main() {
|
|||
.output_frame_cb = handle_output_frame,
|
||||
};
|
||||
compositor_init(&compositor);
|
||||
if (!wlr_backend_start(compositor.backend)) {
|
||||
wlr_log(L_ERROR, "Failed to start backend");
|
||||
wlr_backend_destroy(compositor.backend);
|
||||
exit(1);
|
||||
}
|
||||
wl_display_run(compositor.display);
|
||||
compositor_fini(&compositor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue