diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-22 14:36:47 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-08-22 14:40:40 +0300 |
| commit | cf357d7058910864018c3e3702a9723194fce916 (patch) | |
| tree | 6f93e6d1928a8f887e87f9fc22bb54206219b3fe /niri-visual-tests/src | |
| parent | 618fa08aa5649e867c24db5ae941ca7f5064eeca (diff) | |
| download | niri-cf357d7058910864018c3e3702a9723194fce916.tar.gz niri-cf357d7058910864018c3e3702a9723194fce916.tar.bz2 niri-cf357d7058910864018c3e3702a9723194fce916.zip | |
Implement window resize throttling
Diffstat (limited to 'niri-visual-tests/src')
| -rw-r--r-- | niri-visual-tests/src/test_window.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/niri-visual-tests/src/test_window.rs b/niri-visual-tests/src/test_window.rs index dbba5192..2068cfb8 100644 --- a/niri-visual-tests/src/test_window.rs +++ b/niri-visual-tests/src/test_window.rs @@ -3,7 +3,8 @@ use std::cmp::{max, min}; use std::rc::Rc; use niri::layout::{ - InteractiveResizeData, LayoutElement, LayoutElementRenderElement, LayoutElementRenderSnapshot, + ConfigureIntent, InteractiveResizeData, LayoutElement, LayoutElementRenderElement, + LayoutElementRenderSnapshot, }; use niri::render_helpers::renderer::NiriRenderer; use niri::render_helpers::solid_color::{SolidColorBuffer, SolidColorRenderElement}; @@ -215,6 +216,10 @@ impl LayoutElement for TestWindow { fn set_bounds(&self, _bounds: Size<i32, Logical>) {} + fn configure_intent(&self) -> ConfigureIntent { + ConfigureIntent::CanSend + } + fn send_pending_configure(&mut self) {} fn is_fullscreen(&self) -> bool { |
