aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2021-12-22 12:11:29 -0600
committerDevin J. Pohly <djpohly@gmail.com>2021-12-22 12:11:29 -0600
commit09413da6e398f3a81e25cb5cd61d3f6a1f63d3b6 (patch)
tree2cc822344c37145b50cb95b9f52fbf33fee19fca /dwl.c
parent0c1e621b82fb55b5994ae5ab9956160a47dfec80 (diff)
parent2d9740c2fc481d42eb0deace797553172cc234d9 (diff)
Merge branch 'main' of github:djpohly/dwl
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/dwl.c b/dwl.c
index 1951adb..2640324 100644
--- a/dwl.c
+++ b/dwl.c
@@ -323,10 +323,6 @@ static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr;
static struct wlr_cursor *cursor;
static struct wlr_xcursor_manager *cursor_mgr;
-#ifdef XWAYLAND
-static struct wlr_xcursor *xcursor;
-static struct wlr_xcursor_manager *xcursor_mgr;
-#endif
static struct wlr_seat *seat;
static struct wl_list keyboards;
@@ -2133,18 +2129,6 @@ setup(void)
wl_signal_add(&xwayland->events.ready, &xwayland_ready);
wl_signal_add(&xwayland->events.new_surface, &new_xwayland_surface);
- /*
- * Create the XWayland cursor manager at scale 1, setting its default
- * pointer to match the rest of dwl.
- */
- xcursor_mgr = wlr_xcursor_manager_create(NULL, 24);
- wlr_xcursor_manager_load(xcursor_mgr, 1);
- if ((xcursor = wlr_xcursor_manager_get_xcursor(xcursor_mgr, "left_ptr", 1)))
- wlr_xwayland_set_cursor(xwayland,
- xcursor->images[0]->buffer, xcursor->images[0]->width * 4,
- xcursor->images[0]->width, xcursor->images[0]->height,
- xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y);
-
setenv("DISPLAY", xwayland->display_name, 1);
} else {
fprintf(stderr, "failed to setup XWayland X server, continuing without it\n");