mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
Adapt codestyle
This commit is contained in:
parent
792d535225
commit
e22626ef6a
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
|
||||||
struct wlr_session *session) {
|
struct wlr_session *session) {
|
||||||
// TODO: Choose the most appropriate backend for the situation
|
// TODO: Choose the most appropriate backend for the situation
|
||||||
// Attempt DRM+libinput
|
// Attempt DRM+libinput
|
||||||
if(getenv("WAYLAND_DISPLAY") || getenv("_WAYLAND_DISPLAY")) {
|
if (getenv("WAYLAND_DISPLAY") || getenv("_WAYLAND_DISPLAY")) {
|
||||||
return wlr_wl_backend_create(display, 1);
|
return wlr_wl_backend_create(display, 1);
|
||||||
}
|
}
|
||||||
struct wlr_udev *udev;
|
struct wlr_udev *udev;
|
||||||
|
|
|
@ -35,7 +35,7 @@ static bool wlr_wl_backend_init(struct wlr_backend_state* state) {
|
||||||
}
|
}
|
||||||
|
|
||||||
wlr_egl_init(&state->egl, EGL_PLATFORM_WAYLAND_KHR, state->remote_display);
|
wlr_egl_init(&state->egl, EGL_PLATFORM_WAYLAND_KHR, state->remote_display);
|
||||||
for(size_t i = 0; i < state->num_outputs; ++i) {
|
for (size_t i = 0; i < state->num_outputs; ++i) {
|
||||||
if(!(state->outputs[i] = wlr_wl_output_create(state, i))) {
|
if(!(state->outputs[i] = wlr_wl_output_create(state, i))) {
|
||||||
wlr_log_errno(L_ERROR, "Failed to create %zuth output", i);
|
wlr_log_errno(L_ERROR, "Failed to create %zuth output", i);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue