fschutt / azul

Desktop GUI Framework
https://azul.rs/
Mozilla Public License 2.0
5.89k stars 220 forks source link

Running the calculator example creates 4 windows. #158

Open samhattangady opened 5 years ago

samhattangady commented 5 years ago

Description

On running the calculator example with cargo run --example calculator, 4 separate windows are created. Closing any of them closes all the windows. The numbers and symbols do not render on calculator buttons. The buttons are blank.

Version / OS

Steps to Reproduce

  1. Clone the azul repo at commit hash 9090ce23a114222fcc08dc76b35381e671ab80e7
  2. Run cargo run --example calculator

Additional Information

fschutt commented 5 years ago

Yes, that's intentional (the four windows), that was done in order to test multi-window support. I know about the rendering problems, has to do with webrender not redrawing the full screen. They close all at the same time currently because of problems with handling event loops (right now all windows share an event loop since creating more than one loop leads to segfaults for some reason).