aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-03-23 22:01:04 +0100
committerGuido Cella <guido@guidocella.xyz>2022-03-23 22:01:04 +0100
commit3bace9ce6b9d5fa7c8871a414ed97976e44ecb9c (patch)
treedec7e202e32cf14f5a80e327c3a135e76da7fb87 /dwl.c
parent4ef89996242c3b31a9957666f9f5b8cf7ef5cce8 (diff)
inline the presentation variable
This variable can be removed since with scene-graph wlr_presentation_surface_sampled_on_output no longer needs to be called.
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index 3185062..65d1381 100644
--- a/dwl.c
+++ b/dwl.c
@@ -309,7 +309,6 @@ static struct wl_list fstack; /* focus order */
static struct wlr_idle *idle;
static struct wlr_layer_shell_v1 *layer_shell;
static struct wlr_output_manager_v1 *output_mgr;
-static struct wlr_presentation *presentation;
static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr;
static struct wlr_cursor *cursor;
@@ -2032,8 +2031,7 @@ setup(void)
wl_signal_add(&output_mgr->events.apply, &output_mgr_apply);
wl_signal_add(&output_mgr->events.test, &output_mgr_test);
- presentation = wlr_presentation_create(dpy, backend);
- wlr_scene_set_presentation(scene, presentation);
+ wlr_scene_set_presentation(scene, wlr_presentation_create(dpy, backend));
#ifdef XWAYLAND
/*