From c95f290c658dd96f2ff6cbd288ec91823416fe7a Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 14 Aug 2023 12:24:59 +0400 Subject: winit: Request redraw if had damage To be consistent with the tty backend. Even though this is not optimal for now. --- src/winit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/winit.rs b/src/winit.rs index 8b51a27f..2dda23b3 100644 --- a/src/winit.rs +++ b/src/winit.rs @@ -9,7 +9,7 @@ use smithay::reexports::calloop::timer::{TimeoutAction, Timer}; use smithay::reexports::calloop::LoopHandle; use smithay::reexports::winit::dpi::LogicalSize; use smithay::reexports::winit::window::WindowBuilder; -use smithay::utils::{Rectangle, Transform}; +use smithay::utils::Transform; use crate::backend::Backend; use crate::input::CompositorMod; @@ -48,6 +48,7 @@ impl Backend for Winit { .unwrap(); if let Some(damage) = result.damage { self.backend.submit(Some(&damage)).unwrap(); + self.backend.window().request_redraw(); } } } -- cgit