Skip to content

Commit

Permalink
linux: compute render update on init whenever the window has blur or …
Browse files Browse the repository at this point in the history
…transparency
  • Loading branch information
raphamorim committed Dec 18, 2023
1 parent e3c5979 commit 35aeb8d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontends/cross-winit/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,11 @@ impl Sequencer {
{
// This is a hacky solution to force an update to the window on linux
// Fix is only for windows with opacity that aren't being computed at all
if self.config.window.background_opacity < 1. {
if self.config.window.background_opacity < 1.
|| self.config.window.blur
{
for (_id, route) in self.router.routes.iter_mut() {
route.update_config(
&self.config,
&self.router.font_database,
);
route.update_config(&self.config, &self.router.font_database);

route.redraw();
}
Expand Down

0 comments on commit 35aeb8d

Please sign in to comment.