~kennylevinsen/wldash

5e5e8876f6dbecaf508045f400b63097ddccef6b — Kenny Levinsen 15 days ago 886d595 master
cargo fmt
1 files changed, 3 insertions(+), 1 deletions(-)

M src/app.rs
M src/app.rs => src/app.rs +3 -1
@@ 78,7 78,9 @@ impl AppInner {
        );
        shell_surface.quick_assign(move |layer, event, _| match event {
            zwlr_layer_surface_v1::Event::Configure { serial, .. } => {
                if this_is_stupid.compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst).is_ok()
                if this_is_stupid
                    .compare_exchange(false, true, Ordering::SeqCst, Ordering::SeqCst)
                    .is_ok()
                {
                    *(configured_surfaces.lock().unwrap()) += 1;
                    layer.ack_configure(serial);