mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend: unify startup messages
This commit is contained in:
parent
46c42e55c6
commit
18c2dce65e
3 changed files with 4 additions and 2 deletions
|
@ -84,7 +84,7 @@ static void log_libinput(struct libinput *libinput_context,
|
||||||
static bool backend_start(struct wlr_backend *wlr_backend) {
|
static bool backend_start(struct wlr_backend *wlr_backend) {
|
||||||
struct wlr_libinput_backend *backend =
|
struct wlr_libinput_backend *backend =
|
||||||
get_libinput_backend_from_backend(wlr_backend);
|
get_libinput_backend_from_backend(wlr_backend);
|
||||||
wlr_log(WLR_DEBUG, "Initializing libinput");
|
wlr_log(WLR_DEBUG, "Starting libinput backend");
|
||||||
|
|
||||||
backend->libinput_context = libinput_udev_create_context(&libinput_impl,
|
backend->libinput_context = libinput_udev_create_context(&libinput_impl,
|
||||||
backend, backend->session->udev);
|
backend, backend->session->udev);
|
||||||
|
|
|
@ -267,7 +267,7 @@ static const struct wl_registry_listener registry_listener = {
|
||||||
*/
|
*/
|
||||||
static bool backend_start(struct wlr_backend *backend) {
|
static bool backend_start(struct wlr_backend *backend) {
|
||||||
struct wlr_wl_backend *wl = get_wl_backend_from_backend(backend);
|
struct wlr_wl_backend *wl = get_wl_backend_from_backend(backend);
|
||||||
wlr_log(WLR_INFO, "Initializating wayland backend");
|
wlr_log(WLR_INFO, "Starting Wayland backend");
|
||||||
|
|
||||||
wl->started = true;
|
wl->started = true;
|
||||||
|
|
||||||
|
|
|
@ -165,6 +165,8 @@ static bool backend_start(struct wlr_backend *backend) {
|
||||||
struct wlr_x11_backend *x11 = get_x11_backend_from_backend(backend);
|
struct wlr_x11_backend *x11 = get_x11_backend_from_backend(backend);
|
||||||
x11->started = true;
|
x11->started = true;
|
||||||
|
|
||||||
|
wlr_log(WLR_INFO, "Starting X11 backend");
|
||||||
|
|
||||||
wlr_signal_emit_safe(&x11->backend.events.new_input, &x11->keyboard_dev);
|
wlr_signal_emit_safe(&x11->backend.events.new_input, &x11->keyboard_dev);
|
||||||
|
|
||||||
for (size_t i = 0; i < x11->requested_outputs; ++i) {
|
for (size_t i = 0; i < x11->requested_outputs; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue