Skip to content

Commit

Permalink
fix: only flag dirty if actual visibility transition occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Jan 16, 2025
1 parent 21e66d5 commit fc24dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmic-panel-bin/src/space/panel_space.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,10 @@ impl PanelSpace {
Some(d) => d,
None => return,
};
self.is_dirty = true;
if duration_since_last_focus > self.config.get_hide_wait().unwrap()
&& (!intellihide || !self.toplevel_overlaps.is_empty())
{
self.is_dirty = true;
self.visibility = Visibility::TransitionToHidden {
last_instant: Instant::now(),
progress: Duration::new(0, 0),
Expand Down

0 comments on commit fc24dc6

Please sign in to comment.