aboutsummaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-11 08:26:49 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-11 08:26:49 +0400
commit34bcc6ea9369fda19f4fb776e59f37e5dafc0051 (patch)
tree01a93ed2c0e8e95ca3bad020dece55c45e71065d /src/layout/mod.rs
parent9dfa121b8e31082314d1c9347a60ef2e596494cb (diff)
downloadniri-34bcc6ea9369fda19f4fb776e59f37e5dafc0051.tar.gz
niri-34bcc6ea9369fda19f4fb776e59f37e5dafc0051.tar.bz2
niri-34bcc6ea9369fda19f4fb776e59f37e5dafc0051.zip
Split get resize data from update
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index ad241d94..22aaa7fa 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -176,7 +176,8 @@ pub trait LayoutElement {
fn set_interactive_resize(&mut self, data: Option<InteractiveResizeData>);
fn cancel_interactive_resize(&mut self);
- fn interactive_resize_data(&mut self, serial: Serial) -> Option<InteractiveResizeData>;
+ fn update_interactive_resize(&mut self, serial: Serial);
+ fn interactive_resize_data(&self) -> Option<InteractiveResizeData>;
}
#[derive(Debug)]
@@ -2209,7 +2210,9 @@ mod tests {
fn cancel_interactive_resize(&mut self) {}
- fn interactive_resize_data(&mut self, _serial: Serial) -> Option<InteractiveResizeData> {
+ fn update_interactive_resize(&mut self, _serial: Serial) {}
+
+ fn interactive_resize_data(&self) -> Option<InteractiveResizeData> {
None
}
}