diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-29 10:13:59 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-31 23:02:38 +0400 |
| commit | 7052f0129ef5d2fa5d38eef3dbb5c9296228e341 (patch) | |
| tree | d043afb2c326a004daf3807c0a6e954d091a78f6 /src/pw_utils.rs | |
| parent | 962e159db61dc6c7822aa899b1d9dc86fb6a0de5 (diff) | |
| download | niri-7052f0129ef5d2fa5d38eef3dbb5c9296228e341.tar.gz niri-7052f0129ef5d2fa5d38eef3dbb5c9296228e341.tar.bz2 niri-7052f0129ef5d2fa5d38eef3dbb5c9296228e341.zip | |
Stop screencasts on size changes
Diffstat (limited to 'src/pw_utils.rs')
| -rw-r--r-- | src/pw_utils.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pw_utils.rs b/src/pw_utils.rs index 45ccc559..7ae14f61 100644 --- a/src/pw_utils.rs +++ b/src/pw_utils.rs @@ -27,6 +27,7 @@ use smithay::output::Output; use smithay::reexports::calloop::generic::Generic; use smithay::reexports::calloop::{self, Interest, LoopHandle, Mode, PostAction}; use smithay::reexports::gbm::Modifier; +use smithay::utils::{Physical, Size}; use zbus::SignalContext; use crate::dbus::mutter_screen_cast::{self, CursorMode, ScreenCastToNiri}; @@ -43,6 +44,7 @@ pub struct Cast { _listener: StreamListener<()>, pub is_active: Rc<Cell<bool>>, pub output: Output, + pub size: Size<i32, Physical>, pub cursor_mode: CursorMode, pub last_frame_time: Duration, pub min_time_between_frames: Rc<Cell<Duration>>, @@ -385,6 +387,7 @@ impl PipeWire { _listener: listener, is_active, output, + size, cursor_mode, last_frame_time: Duration::ZERO, min_time_between_frames, |
