update for wlroots!3814
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3814
This commit is contained in:
parent
25dfdcc433
commit
359e7edc52
6
dwl.c
6
dwl.c
|
@ -305,6 +305,7 @@ static struct wlr_scene_tree *layers[NUM_LAYERS];
|
||||||
static struct wlr_renderer *drw;
|
static struct wlr_renderer *drw;
|
||||||
static struct wlr_allocator *alloc;
|
static struct wlr_allocator *alloc;
|
||||||
static struct wlr_compositor *compositor;
|
static struct wlr_compositor *compositor;
|
||||||
|
static struct wlr_session *session;
|
||||||
|
|
||||||
static struct wlr_xdg_shell *xdg_shell;
|
static struct wlr_xdg_shell *xdg_shell;
|
||||||
static struct wlr_xdg_activation_v1 *activation;
|
static struct wlr_xdg_activation_v1 *activation;
|
||||||
|
@ -582,7 +583,8 @@ buttonpress(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
chvt(const Arg *arg)
|
chvt(const Arg *arg)
|
||||||
{
|
{
|
||||||
wlr_session_change_vt(wlr_backend_get_session(backend), arg->ui);
|
if (session)
|
||||||
|
wlr_session_change_vt(session, arg->ui);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1969,7 +1971,7 @@ setup(void)
|
||||||
* backend uses the renderer, for example, to fall back to software cursors
|
* backend uses the renderer, for example, to fall back to software cursors
|
||||||
* if the backend does not support hardware cursors (some older GPUs
|
* if the backend does not support hardware cursors (some older GPUs
|
||||||
* don't). */
|
* don't). */
|
||||||
if (!(backend = wlr_backend_autocreate(dpy)))
|
if (!(backend = wlr_backend_autocreate(dpy, &session)))
|
||||||
die("couldn't create backend");
|
die("couldn't create backend");
|
||||||
|
|
||||||
/* Initialize the scene graph used to lay out windows */
|
/* Initialize the scene graph used to lay out windows */
|
||||||
|
|
Loading…
Reference in a new issue