1
0
Fork 0
forked from wry/wry

cursor: don't invalidate hardware cursor user when detaching cursor user

This commit is contained in:
Julian Orth 2025-04-22 23:32:14 +02:00
parent 4b9e5e3d25
commit 8a167ef1fb
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# Unreleased # Unreleased
- Various bugfixes.
- Floating windows can now be configured to be shown above fullscreen windows - Floating windows can now be configured to be shown above fullscreen windows
by using the `enable-float-above-fullscreen` action. by using the `enable-float-above-fullscreen` action.
- Implement xdg-toplevel-tag-v1. - Implement xdg-toplevel-tag-v1.

View file

@ -106,7 +106,6 @@ impl CursorUserGroup {
fn remove_hardware_cursor(&self) { fn remove_hardware_cursor(&self) {
self.state.hardware_tick_cursor.push(None); self.state.hardware_tick_cursor.push(None);
self.state.damage_hardware_cursors(false); self.state.damage_hardware_cursors(false);
self.state.cursor_user_group_hardware_cursor.take();
} }
pub fn detach(&self) { pub fn detach(&self) {
@ -182,6 +181,7 @@ impl CursorUserGroup {
} }
} else { } else {
self.remove_hardware_cursor(); self.remove_hardware_cursor();
self.state.cursor_user_group_hardware_cursor.take();
} }
} }