mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Merge pull request #152 from ARDiDo/no_redundant_xcursor
remove redundancies in xcursors
This commit is contained in:
commit
96ce40cfe9
1 changed files with 0 additions and 16 deletions
16
dwl.c
16
dwl.c
|
@ -323,10 +323,6 @@ static struct wlr_virtual_keyboard_manager_v1 *virtual_keyboard_mgr;
|
||||||
|
|
||||||
static struct wlr_cursor *cursor;
|
static struct wlr_cursor *cursor;
|
||||||
static struct wlr_xcursor_manager *cursor_mgr;
|
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 wlr_seat *seat;
|
||||||
static struct wl_list keyboards;
|
static struct wl_list keyboards;
|
||||||
|
@ -2133,18 +2129,6 @@ setup(void)
|
||||||
wl_signal_add(&xwayland->events.ready, &xwayland_ready);
|
wl_signal_add(&xwayland->events.ready, &xwayland_ready);
|
||||||
wl_signal_add(&xwayland->events.new_surface, &new_xwayland_surface);
|
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);
|
setenv("DISPLAY", xwayland->display_name, 1);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "failed to setup XWayland X server, continuing without it\n");
|
fprintf(stderr, "failed to setup XWayland X server, continuing without it\n");
|
||||||
|
|
Loading…
Reference in a new issue