control-center: add input pane
This commit is contained in:
parent
db06d719dd
commit
edbdcdca32
11 changed files with 783 additions and 63 deletions
|
|
@ -1,6 +1,7 @@
|
|||
use {
|
||||
crate::{
|
||||
backend::HardwareCursorUpdate,
|
||||
control_center::CCI_INPUT,
|
||||
cursor::{Cursor, DEFAULT_CURSOR_SIZE, KnownCursor},
|
||||
fixed::Fixed,
|
||||
gfx_api::{AcquireSync, ReleaseSync},
|
||||
|
|
@ -183,6 +184,7 @@ impl CursorUserGroup {
|
|||
self.remove_hardware_cursor();
|
||||
self.state.cursor_user_group_hardware_cursor.take();
|
||||
}
|
||||
self.state.trigger_cci(CCI_INPUT);
|
||||
}
|
||||
|
||||
pub fn hardware_cursor(&self) -> bool {
|
||||
|
|
@ -195,10 +197,10 @@ impl CursorUserGroup {
|
|||
self.state.remove_cursor_size(old);
|
||||
self.state.add_cursor_size(size);
|
||||
self.reload_known_cursor();
|
||||
self.state.trigger_cci(CCI_INPUT);
|
||||
}
|
||||
}
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub fn cursor_size(&self) -> u32 {
|
||||
self.size.get()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue