mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
cursor: update cursor image on scale change
This commit is contained in:
parent
58382260de
commit
4dc99e2f38
3 changed files with 25 additions and 7 deletions
11
src/cursor.c
11
src/cursor.c
|
|
@ -259,6 +259,17 @@ cursor_set(struct seat *seat, enum lab_cursors cursor)
|
|||
seat->server_cursor = cursor;
|
||||
}
|
||||
|
||||
void
|
||||
cursor_update_image(struct seat *seat)
|
||||
{
|
||||
enum lab_cursors cursor = seat->server_cursor;
|
||||
if (cursor == LAB_CURSOR_CLIENT) {
|
||||
return;
|
||||
}
|
||||
wlr_xcursor_manager_set_cursor_image(
|
||||
seat->xcursor_manager, cursor_names[cursor], seat->cursor);
|
||||
}
|
||||
|
||||
bool
|
||||
input_inhibit_blocks_surface(struct seat *seat, struct wl_resource *resource)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue