Skip to content

Commit

Permalink
wl_output is always v4
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVerevkin committed Mar 18, 2024
1 parent 587d092 commit 861afd9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ impl Output {
fn destroy(self, conn: &mut Connection<State>) {
eprintln!("Output {} removed", self.reg_name);
self.gamma_control.destroy(conn);
if self.wl.version() >= 3 {
self.wl.release(conn);
}
self.wl.release(conn);
}

pub fn reg_name(&self) -> u32 {
Expand Down

0 comments on commit 861afd9

Please sign in to comment.