Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm: enable events loop #459

Merged
merged 14 commits into from
Jan 4, 2021
Merged

wasm: enable events loop #459

merged 14 commits into from
Jan 4, 2021

Commits on Jan 1, 2021

  1. wasm: enable events loop

    iceiix committed Jan 1, 2021
    Configuration menu
    Copy the full SHA
    4d459ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26586f8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0e7eda View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d71e32a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c6f18e6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    66c47c8 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2021

  1. Configuration menu
    Copy the full SHA
    542fa1b View commit details
    Browse the repository at this point in the history
  2. main: disable set_cursor_grab() call on wasm to get further until Poi…

    …nter Lock is available
    iceiix committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    f118953 View commit details
    Browse the repository at this point in the history
  3. Revert "Log when entering/exiting render/events loops"

    This reverts commit 542fa1b.
    iceiix committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    1dca9fd View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2021

  1. Configuration menu
    Copy the full SHA
    991b5f1 View commit details
    Browse the repository at this point in the history
  2. Failed attempt at fixing use of moved value

    error[E0716]: temporary value dropped while borrowed
       --> src/main.rs:332:24
        |
    332 |     let winit_window = Box::leak(Box::new(glutin_window)).borrow().window();
        |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^---------- temporary value is freed at the end of this statement
        |                        |
        |                        creates a temporary which is freed while still in use
        |                        argument requires that borrow lasts for `'static`
    
    error[E0382]: use of moved value: `glutin_window`
       --> src/main.rs:437:21
        |
    330 |     let glutin_window = RefCell::new(Box::leak(Box::new(glutin_window)));
        |         ------------- move occurs because `glutin_window` has type `RefCell<&mut ContextWrapper<PossiblyCurrent, winit::window::Window>>`, which does not implement the `Copy` trait
    331 |     #[cfg(not(target_arch = "wasm32"))]
    332 |     let winit_window = Box::leak(Box::new(glutin_window)).borrow().window();
        |                                           ------------- value moved here
    ...
    437 |     events_loop.run(move |event, _event_loop, control_flow| {
        |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ value used here after move
    ...
    458 |             glutin_window.borrow().resize(physical_size);
        |             ------------- use occurs due to use in closure
    
    error: aborting due to 2 previous errors
    iceiix committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    8f78ec4 View commit details
    Browse the repository at this point in the history
  3. Revert "Failed attempt at fixing use of moved value"

    This reverts commit 8f78ec4.
    iceiix committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    3e672ad View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. Configuration menu
    Copy the full SHA
    4350a01 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary Box leak

    iceiix committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    8e57cca View commit details
    Browse the repository at this point in the history