Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jan 6, 2025
1 parent 90caa8d commit 81c879a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/undecorated_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl ApplicationHandler for App {
WindowEvent::KeyboardInput {
event: KeyEvent { logical_key: Key::Character(c), state: ElementState::Pressed, .. },
..
} if c.as_ref() == "x" => {
} if c == "x" => {
self.shadow = !self.shadow;
self.window.as_ref().unwrap().set_undecorated_shadow(self.shadow);
},
Expand Down

0 comments on commit 81c879a

Please sign in to comment.