aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-03-23 22:01:04 +0100
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-23 18:22:40 -0600
commit281c947e5f19b5c304baa51de9d90e69c80a5a9a (patch)
tree87a8e91aee804d9d618028529c6e68dcc0f5d553
parent855e6c189806b195e7f2f851c37dd4a21d3e5366 (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.
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index a198177..2d58079 100644
--- a/dwl.c
+++ b/dwl.c
@@ -298,7 +298,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;
@@ -1906,8 +1905,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
/*