Skip to content

Commit

Permalink
fix "surface was destroyed before its role object" error
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Nov 26, 2023
1 parent 4b77e8d commit 6303fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ impl Bar {
}

pub fn destroy(self, conn: &mut Connection<State>) {
self.output.destroy(conn);
self.surface.destroy(conn);
self.layer_surface.destroy(conn);
self.viewport.destroy(conn);
if let Some(fs) = self.fractional_scale {
fs.destroy(conn);
}
self.surface.destroy(conn);
self.output.destroy(conn);
}

pub fn set_tags(&mut self, tags: Vec<Tag>) {
Expand Down

0 comments on commit 6303fa3

Please sign in to comment.