mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-15 08:21:41 -04:00
Merge ea3a1f0b61 into 74d24c3cd9
This commit is contained in:
commit
5d791fdbba
1 changed files with 8 additions and 5 deletions
13
src/mango.c
13
src/mango.c
|
|
@ -6615,11 +6615,14 @@ void xwaylandready(struct wl_listener *listener, void *data) {
|
||||||
wlr_xwayland_set_seat(xwayland, seat);
|
wlr_xwayland_set_seat(xwayland, seat);
|
||||||
|
|
||||||
/* Set the default XWayland cursor to match the rest of dwl. */
|
/* Set the default XWayland cursor to match the rest of dwl. */
|
||||||
if ((xcursor = wlr_xcursor_manager_get_xcursor(cursor_mgr, "default", 1)))
|
|
||||||
wlr_xwayland_set_cursor(
|
if ((xcursor = wlr_xcursor_manager_get_xcursor(cursor_mgr, "default", 1))) {
|
||||||
xwayland, xcursor->images[0]->buffer, xcursor->images[0]->width * 4,
|
struct wlr_xcursor_image *image = xcursor->images[0];
|
||||||
xcursor->images[0]->width, xcursor->images[0]->height,
|
struct wlr_buffer *buffer = wlr_xcursor_image_get_buffer(image);
|
||||||
xcursor->images[0]->hotspot_x, xcursor->images[0]->hotspot_y);
|
wlr_xwayland_set_cursor(xwayland, buffer, xcursor->images[0]->hotspot_x,
|
||||||
|
xcursor->images[0]->hotspot_y);
|
||||||
|
}
|
||||||
|
|
||||||
/* xwayland can't auto sync the keymap, so we do it manually
|
/* xwayland can't auto sync the keymap, so we do it manually
|
||||||
and we need to wait the xwayland completely inited
|
and we need to wait the xwayland completely inited
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue