aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-14 12:24:59 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-14 12:24:59 +0400
commitc95f290c658dd96f2ff6cbd288ec91823416fe7a (patch)
tree73fb078bf58177f0c5482fea8cde0c74fdbc3800 /src
parent1dc698281dcaa507ace9b680ffa01f69a68dc395 (diff)
downloadniri-c95f290c658dd96f2ff6cbd288ec91823416fe7a.tar.gz
niri-c95f290c658dd96f2ff6cbd288ec91823416fe7a.tar.bz2
niri-c95f290c658dd96f2ff6cbd288ec91823416fe7a.zip
winit: Request redraw if had damage
To be consistent with the tty backend. Even though this is not optimal for now.
Diffstat (limited to 'src')
-rw-r--r--src/winit.rs3
1 files changed, 2 insertions, 1 deletions
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();
}
}
}