We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e75ae8 + 1a01599 commit 7734b7fCopy full SHA for 7734b7f
src/capturer/engine/linux/portal.rs
@@ -408,13 +408,14 @@ impl<'a> ScreenCastPortal<'a> {
408
409
pub fn show_cursor(mut self, mode: bool) -> Result<Self, LinCapError> {
410
let available_modes = self.proxy.available_cursor_modes()?;
411
- if mode && available_modes & 1 == 1 {
412
- self.cursor_mode = 1;
413
- return Ok(self);
414
- } else if !mode && available_modes & 2 == 1 {
+ if mode && available_modes & 2 == 2 {
415
self.cursor_mode = 2;
416
return Ok(self);
417
}
+ if !mode && available_modes & 1 == 1 {
+ self.cursor_mode = 1;
+ return Ok(self);
418
+ }
419
420
Err(LinCapError::new("Unsupported cursor mode".to_string()))
421
0 commit comments