Implement window resize throttling

This commit is contained in:
Ivan Molodetskikh
2024-08-22 14:36:47 +03:00
parent 618fa08aa5
commit cf357d7058
6 changed files with 119 additions and 5 deletions
+6 -1
View File
@@ -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 {