aboutsummaryrefslogtreecommitdiff
path: root/src/window
diff options
context:
space:
mode:
Diffstat (limited to 'src/window')
-rw-r--r--src/window/mapped.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/window/mapped.rs b/src/window/mapped.rs
index d895356a..a86d7f00 100644
--- a/src/window/mapped.rs
+++ b/src/window/mapped.rs
@@ -766,7 +766,11 @@ impl LayoutElement for Mapped {
self.interactive_resize = None;
}
- fn update_interactive_resize(&mut self, commit_serial: Serial) {
+ fn interactive_resize_data(&self) -> Option<InteractiveResizeData> {
+ Some(self.interactive_resize.as_ref()?.data())
+ }
+
+ fn on_commit(&mut self, commit_serial: Serial) {
if let Some(InteractiveResize::WaitingForLastCommit { serial, .. }) =
&self.interactive_resize
{
@@ -775,8 +779,4 @@ impl LayoutElement for Mapped {
}
}
}
-
- fn interactive_resize_data(&self) -> Option<InteractiveResizeData> {
- Some(self.interactive_resize.as_ref()?.data())
- }
}