mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
Fix initial hardware cursor position
This commit is contained in:
parent
1228d0da19
commit
0781f6e483
1 changed files with 4 additions and 0 deletions
|
|
@ -356,6 +356,10 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
|
||||||
|
|
||||||
if (cursor->output->hardware_cursor == NULL &&
|
if (cursor->output->hardware_cursor == NULL &&
|
||||||
cursor->output->impl->set_cursor) {
|
cursor->output->impl->set_cursor) {
|
||||||
|
if (cursor->output->impl->move_cursor) {
|
||||||
|
cursor->output->impl->move_cursor(cursor->output,
|
||||||
|
(int)cursor->x, (int)cursor->y);
|
||||||
|
}
|
||||||
int ok = cursor->output->impl->set_cursor(cursor->output, pixels,
|
int ok = cursor->output->impl->set_cursor(cursor->output, pixels,
|
||||||
stride, width, height, hotspot_x, hotspot_y, true);
|
stride, width, height, hotspot_x, hotspot_y, true);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue