Do a roundtrip when the Wayland fd is ready.
This means we don't need to store the Display or EventQueue in a lazy
static. Hurray!
Though we may need them later, they can probably live safely in the main
stack for the entirety of the program. So that's nice.
@@ -48,18 +48,12 @@ static gboolean interface_check(GSource *base)
static gboolean interface_dispatch(GSource *base, GSourceFunc callback,
gpointer data)
{
-
- // TODO I don't think wayland-rs releases the lock,
- // so we can't do that here. Instead we need to do that in Rust land.
- /*if (interface_source->queue == NULL) {
+ struct InterfaceEventSource *interface_source
+ = (struct InterfaceEventSource *) base;
wl_display_roundtrip(interface_source->display);
- } else {
- wl_display_roundtrip_queue(interface_source->display, interface_source->queue);
- }*/
refresh_awesome();
- (void) base;
(void) callback;
(void) data;
