Skip to content

Commit

Permalink
undo latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Aug 19, 2024
1 parent f7eb7ed commit ecc4270
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
6 changes: 0 additions & 6 deletions frontends/rioterm/src/screen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ pub struct Screen<'screen> {
pub context_manager: context::ContextManager<EventProxy>,
}

// impl<'a> Drop for Screen<'a> {
// fn drop(&mut self) {
// println!("dropped screen");
// }
// }

pub struct ScreenWindowProperties {
pub size: winit::dpi::PhysicalSize<u32>,
pub scale: f64,
Expand Down
11 changes: 2 additions & 9 deletions frontends/rioterm/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ impl Sequencer {
if route_id
== route.window.screen.ctx().current_route()
{
route
.window
.screen
.context_manager
.schedule_render(4);
// route.window.winit_window.request_redraw();
route.window.winit_window.request_redraw();
}
}
}
Expand Down Expand Up @@ -1053,8 +1048,6 @@ impl Sequencer {
{
route.window.winit_window.set_cursor_visible(false);
}

route.window.winit_window.request_redraw();
}
}

Expand Down Expand Up @@ -1183,7 +1176,7 @@ impl Sequencer {

if let Some(route) = self.router.routes.get_mut(&window_id) {
route.window.screen.resize(new_size);
route.window.screen.context_manager.schedule_render(30);
route.window.screen.context_manager.schedule_render(60);
}
}

Expand Down

0 comments on commit ecc4270

Please sign in to comment.