Skip to content

Commit 0734286

Browse files
committed
Remove unnecessary duplication of if condition
1 parent 7fded06 commit 0734286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/compositor.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ impl Compositor {
232232

233233
pub fn redraw_cursor(&mut self, total_redraw: Option<Rect>) {
234234
if self.hw_cursor {
235-
if self.hw_cursor && self.update_cursor_timer.elapsed().as_millis() > 1000 {
235+
if self.update_cursor_timer.elapsed().as_millis() > 1000 {
236236
self.send_cursor_command(&CursorCommand {
237237
header: 1,
238238
x: self.cursor_x,

0 commit comments

Comments
 (0)