[awm2] Draw a frame on every message
@@ -149,10 +149,7 @@ pub fn main() {
}
}
};
- if consumed {
- continue;
- }
-
+ if !consumed {
// Unknown sender - probably a client wanting to interact with the window manager
match event {
// Mouse driver events
@@ -166,18 +163,20 @@ pub fn main() {
desktop.handle_window_requested_redraw(msg_unparsed.source());
}
AwmWindowUpdateTitle::EXPECTED_EVENT => {
- desktop
- .handle_window_updated_title(&msg_source, body_as_type_unchecked(raw_body));
+ desktop.handle_window_updated_title(
+ &msg_source,
+ body_as_type_unchecked(raw_body),
+ );
}
_ => {
println!("Awm ignoring message with unknown event type: {event}");
}
}
- match msg_source.as_str() {
- _ => {}
}
}
+ // Now that we've processed a message, draw a frame to reflect the updated state
+ // Perhaps there are messages for which we can elide a draw?
desktop.draw_frame();
}
}
