mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
fix crashing when return from vt switching away
This commit is contained in:
parent
db3020f370
commit
0c6d51028a
1 changed files with 5 additions and 3 deletions
|
|
@ -59,14 +59,16 @@ pub fn init(self: *Cursor) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn deinit(self: *Cursor) void {
|
pub fn deinit(self: *Cursor) void {
|
||||||
self.wlr_cursor.destroy();
|
|
||||||
self.x_cursor_manager.destroy();
|
|
||||||
|
|
||||||
self.motion.link.remove();
|
self.motion.link.remove();
|
||||||
self.motion_absolute.link.remove();
|
self.motion_absolute.link.remove();
|
||||||
self.button.link.remove();
|
self.button.link.remove();
|
||||||
self.axis.link.remove();
|
self.axis.link.remove();
|
||||||
self.frame.link.remove();
|
self.frame.link.remove();
|
||||||
|
self.hold_begin.link.remove();
|
||||||
|
self.hold_end.link.remove();
|
||||||
|
|
||||||
|
self.wlr_cursor.destroy();
|
||||||
|
self.x_cursor_manager.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn processCursorMotion(self: *Cursor, time_msec: u32) void {
|
pub fn processCursorMotion(self: *Cursor, time_msec: u32) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue